klsince commented on code in PR #11020: URL: https://github.com/apache/pinot/pull/11020#discussion_r1248859798
########## pinot-segment-local/src/main/java/org/apache/pinot/segment/local/upsert/BasePartitionUpsertMetadataManager.java: ########## @@ -190,7 +192,11 @@ public void addSegment(ImmutableSegmentImpl segment, @Nullable ThreadSafeMutable if (queryableDocIds == null && _deleteRecordColumn != null) { queryableDocIds = new ThreadSafeMutableRoaringBitmap(); } - addOrReplaceSegment(segment, validDocIds, queryableDocIds, recordInfoIterator, null, null); + if (_tableUpsertMetadataManager.isPreloadingSegment(segmentName)) { Review Comment: Currently the snapshot existence check is done in table upsert mgr’s preloadSegments method. But I’ll think more about the idea proposed here. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org