ankitsultana commented on code in PR #16776:
URL: https://github.com/apache/pinot/pull/16776#discussion_r2342042042


##########
pinot-broker/src/main/java/org/apache/pinot/broker/routing/segmentpartition/SegmentPartitionMetadataManager.java:
##########
@@ -106,14 +108,28 @@ private int getPartitionId(String segment, @Nullable 
ZNRecord znRecord) {
     if (!_partitionFunctionName.equalsIgnoreCase(partitionFunction.getName())) 
{
       return INVALID_PARTITION_ID;
     }
-    if (_numPartitions != partitionFunction.getNumPartitions()) {
-      return INVALID_PARTITION_ID;
-    }
-    Set<Integer> partitions = segmentPartitionInfo.getPartitions();
-    if (partitions.size() != 1) {
-      return INVALID_PARTITION_ID;
+    if (_allowPartitionRemapping) {

Review Comment:
   With the current changes consuming segments are not included in the 
remapping which seems like an anti-pattern.
   
   Can we also include them?



-- 
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