nishantmonu51 commented on a change in pull request #10677:
URL: https://github.com/apache/druid/pull/10677#discussion_r555809503



##########
File path: 
extensions-core/hdfs-storage/src/main/java/org/apache/druid/inputsource/hdfs/HdfsInputSource.java
##########
@@ -214,10 +215,23 @@ public boolean needsFormat()
   private void cachePathsIfNeeded() throws IOException
   {
     if (cachedPaths == null) {
-      cachedPaths = 
ImmutableList.copyOf(Preconditions.checkNotNull(getPaths(inputPaths, 
configuration), "paths"));
+      Collection<Path> paths = Preconditions.checkNotNull(getPaths(inputPaths, 
configuration), "paths");
+      cachedPaths = ImmutableList.copyOf(paths);
     }
   }
 
+  @Override
+  public void validateAllowDenyPrefixList(InputSourceSecurityConfig 
securityConfig)
+  {
+    try {
+      cachePathsIfNeeded();

Review comment:
       done. 




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