deepthi912 commented on code in PR #19394:
URL: https://github.com/apache/pinot/pull/19394#discussion_r3899548880


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/indexsegment/immutable/ImmutableSegmentLoader.java:
##########
@@ -158,6 +158,16 @@ public static void preprocess(File indexDir, 
IndexLoadingConfig indexLoadingConf
     Preconditions.checkArgument(indexDir.isDirectory(), "Index directory: %s 
does not exist or is not a directory",
         indexDir);
 
+    // Respect skipSegmentPreprocess uniformly across every caller — including 
cold-download load paths

Review Comment:
   I see your point, but needPreProcess would open segment directories and 
check segment versions as well which we don't need in cases of new segment 
generations. But the same flow is used by segments whose crc changes. Are you 
talking about just making sure we have right `needPreprocess` variable before 
invoking it via load or just using 
`ImmutableSegmentLoader.needPreprocess(segmentDirectory, indexLoadingConfig)` 
method for any case before preprocess? 



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