panhongan commented on code in PR #14276:
URL: https://github.com/apache/druid/pull/14276#discussion_r1205410201


##########
extensions-core/hdfs-storage/src/main/java/org/apache/druid/storage/hdfs/HdfsStorageDruidModule.java:
##########
@@ -91,7 +92,15 @@ public void configure(Binder binder)
     ClassLoader currCtxCl = Thread.currentThread().getContextClassLoader();
     try {
       
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
-      FileSystem.get(conf);
+      FileSystem fs = FileSystem.get(conf);
+
+      // If cache is enabled, need to check the FileSystem object by access 
hdfs because FileSystem object will be used later, like in push stage.
+      // If FileSystem is invalid, the peon task should stop immediately.
+      // See https://github.com/apache/druid/pull/14276
+      boolean disableCache = conf.getBoolean("fs.hdfs.impl.disable.cache", 
false);

Review Comment:
   Thanks for your suggestion. I add class `HdfsStorageAvailabilityChecker`.



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