Skip to content

Commit 37f059c

Browse files
committed
remove extra change
1 parent 1d1a398 commit 37f059c

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/main/java/org/apache/hadoop/fs/glusterfs/GlusterVolume.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import org.apache.hadoop.fs.Path;
3838
import org.apache.hadoop.fs.RawLocalFileSystem;
3939
import org.apache.hadoop.fs.permission.FsPermission;
40+
import org.mortbay.log.Log;
4041
import org.slf4j.Logger;
4142
import org.slf4j.LoggerFactory;
4243

@@ -292,7 +293,7 @@ public FileStatus[] listStatus(Path f) throws IOException {
292293
results[j] = getFileStatus(fileToPath(names[i]));
293294
j++;
294295
} catch (FileNotFoundException e) {
295-
System.err.println("ignoring : " + names[i]);
296+
log.info("ignoring invisible path : " + names[i]);
296297
}
297298
}
298299
if (j == names.length) {
@@ -344,15 +345,12 @@ public BlockLocation[] getFileBlockLocations(FileStatus file,long start,long len
344345
File f=pathToFile(file.getPath());
345346
BlockLocation[] result=null;
346347

347-
try{
348-
result=attr.getPathInfo(f.getPath(), start, len);
349-
}
350-
catch(Throwable t){
351-
if(result==null){
352-
log.info("Problem getting destination host for file "+f.getPath());
353-
return null;
354-
}
348+
result=attr.getPathInfo(f.getPath(), start, len);
349+
if(result==null){
350+
log.info("Problem getting destination host for file "+f.getPath());
351+
return null;
355352
}
353+
356354
return result;
357355
}
358356

0 commit comments

Comments
 (0)