Updating table configuration should ensure that realtime cluster is setup
PUT call to update table configuration should ensure that realtime cluster
is setup to maintain backwards compatibility.
@@ -1102,10 +1102,12 @@ public class PinotHelixResourceManager {
if (type == TableType.REALTIME) {
ZKMetadataProvider.setRealtimeTableConfig(_propertyStore, tableNameWithSuffix,
AbstractTableConfig.toZnRecord(config));
+ ensureRealtimeClusterIsSetUp(config, tableNameWithSuffix, config.getIndexingConfig());
} else {
ZKMetadataProvider.setOfflineTableConfig(_propertyStore, tableNameWithSuffix,
AbstractTableConfig.toZnRecord(config));
}
+
}
public void updateMetadataConfigFor(String tableName, TableType type, TableCustomConfig newConfigs) throws Exception {
