clintropolis commented on code in PR #18637:
URL: https://github.com/apache/druid/pull/18637#discussion_r2436525407


##########
server/src/main/java/org/apache/druid/segment/loading/SegmentLocalCacheManager.java:
##########
@@ -831,7 +835,9 @@ public void mount(StorageLocation mountLocation) throws 
SegmentLoadingException
           }
           final SegmentizerFactory factory = getSegmentFactory(storageDir);
 
-          final Segment segment = factory.factorize(dataSegment, storageDir, 
false, lazyLoadCallback);
+          @SuppressWarnings("ObjectEquality")
+          final boolean lazy = config.isLazyLoadOnStart() && lazyLoadCallback 
!= SegmentLazyLoadFailCallback.NOOP;

Review Comment:
   yea, bootstrap is always called with a callback set 
https://github.com/apache/druid/blob/master/server/src/main/java/org/apache/druid/server/coordination/SegmentCacheBootstrapper.java#L213



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