DRILL-1494: Fix annoying and unnecessary warning 'Failure while trying to load 
.drill file'


Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/919baa0b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/919baa0b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/919baa0b

Branch: refs/heads/master
Commit: 919baa0b2f17feffd1736a835ba5d35c6c2fa2aa
Parents: e93fb45
Author: Aditya Kishore <adi...@maprtech.com>
Authored: Fri Oct 3 15:36:32 2014 -0700
Committer: Aditya Kishore <adi...@maprtech.com>
Committed: Thu Oct 9 13:59:13 2014 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/drill/exec/store/ClassPathFileSystem.java | 2 +-
 .../org/apache/drill/exec/store/dfs/WorkspaceSchemaFactory.java    | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/919baa0b/exec/java-exec/src/main/java/org/apache/drill/exec/store/ClassPathFileSystem.java
----------------------------------------------------------------------
diff --git 
a/exec/java-exec/src/main/java/org/apache/drill/exec/store/ClassPathFileSystem.java
 
b/exec/java-exec/src/main/java/org/apache/drill/exec/store/ClassPathFileSystem.java
index 5e00f08..d5c92f5 100644
--- 
a/exec/java-exec/src/main/java/org/apache/drill/exec/store/ClassPathFileSystem.java
+++ 
b/exec/java-exec/src/main/java/org/apache/drill/exec/store/ClassPathFileSystem.java
@@ -102,7 +102,7 @@ public class ClassPathFileSystem extends FileSystem{
 
   @Override
   public FileStatus[] listStatus(Path arg0) throws IOException {
-    throw new IOException("ClassPathFileSystem doesn't currently support 
listing files.");
+    throw new UnsupportedOperationException("ClassPathFileSystem doesn't 
currently support listing files.");
   }
 
   @Override

http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/919baa0b/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/WorkspaceSchemaFactory.java
----------------------------------------------------------------------
diff --git 
a/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/WorkspaceSchemaFactory.java
 
b/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/WorkspaceSchemaFactory.java
index 03a6966..68f380c 100644
--- 
a/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/WorkspaceSchemaFactory.java
+++ 
b/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/WorkspaceSchemaFactory.java
@@ -253,6 +253,8 @@ public class WorkspaceSchemaFactory implements 
ExpandingConcurrentMap.MapValueFa
             return new DrillViewTable(schemaPath, getView(f));
           }
         }
+      } catch (UnsupportedOperationException e) {
+        logger.debug("The filesystem for this workspace does not support this 
operation.", e);
       } catch (Exception e) {
         logger.warn("Failure while trying to load .drill file.", e);
       }

Reply via email to