hongkunxu commented on code in PR #20220:
URL: https://github.com/apache/pinot/pull/20220#discussion_r4661543931


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/TableConfigUtils.java:
##########
@@ -591,6 +591,12 @@ static void validateIngestionConfig(TableConfig 
tableConfig, Schema schema,
       Preconditions.checkState(indexingConfig == null || 
MapUtils.isEmpty(indexingConfig.getStreamConfigs()),
           "Should not use indexingConfig#getStreamConfigs if 
ingestionConfig#StreamIngestionConfig is provided");
       StreamIngestionConfig streamIngestionConfig = 
ingestionConfig.getStreamIngestionConfig();
+      if (streamIngestionConfig.isReplicateMode()) {
+        Preconditions.checkState(tableConfig.getTableType() == 
TableType.REALTIME,
+            "replicateMode is only supported for REALTIME tables");
+        Preconditions.checkState(!tableConfig.isUpsertEnabled() && 
!tableConfig.isDedupEnabled(),

Review Comment:
   Thanks for highlighting these cases. Supporting strictReplicaGroup and 
multiStageReplicaGroup with replicate mode requires additional detailed design 
to preserve their routing guarantees during segment fanout and leader changes. 
For v1, table-config validation now explicitly rejects replicateMode=true when 
either selector is configured. Compatibility with these strategies is deferred 
to future work.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to