Jackie-Jiang commented on code in PR #17503:
URL: https://github.com/apache/pinot/pull/17503#discussion_r2697216441


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/upsert/ConcurrentMapPartitionUpsertMetadataManagerForConsistentDeletes.java:
##########
@@ -193,7 +197,7 @@ currentSegmentName, getAuthoritativeCreationTime(segment),
               // New primary key
               addDocId(segment, validDocIds, queryableDocIds, newDocId, 
recordInfo);
               RecordLocation newRecordLocation = new RecordLocation(segment, 
newDocId, newComparisonValue, 1);
-              _newlyAddedKeys.put(primaryKey, newRecordLocation);
+              _previousKeyToRecordLocationMap.put(primaryKey, 
newRecordLocation);

Review Comment:
   But this branch is for new primary key right? The new key will point to the 
uploaded new segment, but not the consuming segment



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