deepthi912 commented on code in PR #19010:
URL: https://github.com/apache/pinot/pull/19010#discussion_r4023375551
##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/upsert/ConcurrentMapPartitionUpsertMetadataManager.java:
##########
@@ -240,6 +240,10 @@ protected void revertAndRemoveSegment(IndexSegment segment,
}
// Revert to previous segment location
IndexSegment prevSegment = prevLocation.getSegment();
+ // Skip if prevSegment has been offloaded; its data buffers are
unmapped.
Review Comment:
Removed the check here and made sure the segments are removed from the
`_previousKeyToRecordLocationMap` when prev segment locations are removed and
untracked.
--
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]