diff --git a/src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFileSystem.java b/src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFileSystem.java old mode 100644 new mode 100755 index 8107f862..fb1a0de3 --- a/src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFileSystem.java +++ b/src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFileSystem.java @@ -50,6 +50,18 @@ public FileSystem getRaw(){ return rfs; } + /** Check that a Path belongs to this FileSystem. */ + @Override + protected void checkPath(Path path) { + String thisScheme = this.getUri().getScheme(); + String thatScheme = path.toUri().getScheme(); + String thisAuthority = this.getUri().getAuthority(); + String thatAuthority = path.toUri().getAuthority(); + log.info("checking path: scheme=" + thisScheme+" auth="+thisAuthority + " vs scheme=" + thatScheme +" auth=" + thatAuthority); + //now the exception will be traceable in the logs above . + super.checkPath(path); + } + public void initialize(URI name,Configuration conf) throws IOException{ if(fs.getConf()==null){ fs.initialize(name, conf);