zhangyue19921010 commented on a change in pull request #10650:
URL: https://github.com/apache/druid/pull/10650#discussion_r542465563



##########
File path: 
server/src/main/java/org/apache/druid/segment/loading/SegmentLoaderLocalCacheManager.java
##########
@@ -157,7 +184,15 @@ public File getSegmentFiles(DataSegment segment) throws 
SegmentLoadingException
       try {
         StorageLocation loc = findStorageLocationIfLoaded(segment);
         String storageDir = DataSegmentPusher.getDefaultStorageDir(segment, 
false);
-
+        if (loc != null) {
+          File localStorageDir = new File(loc.getPath(), storageDir);
+          if (checkSegmentFilesIntact(localStorageDir)) {

Review comment:
       Done. Thanks for your review!




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to