noob-se7en commented on code in PR #15250: URL: https://github.com/apache/pinot/pull/15250#discussion_r1992966695
########## pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/SegmentPreloadUtils.java: ########## @@ -191,4 +195,36 @@ private static Map<String, SegmentZKMetadata> getSegmentsZKMetadata(String table .forEach(m -> segmentMetadataMap.put(m.getSegmentName(), m)); return segmentMetadataMap; } + + public static boolean loadedPrevSegment(String segmentNameStr, TableDataManager realtimeTableDataManager) { Review Comment: This check can be optimised. -- 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