HCFS: avoid verbose file not found exception stack trace

This commit is contained in:
Chris Lu committed 2019-09-01 21:40:26 -07:00
1 parent af8b413a9c
commit 60c9215a00
7 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
<groupId>com.github.chrislusf</groupId>
<artifactId>seaweedfs-client</artifactId>
<version>1.1.3</version>
<version>1.1.5</version>
<parent>
<groupId>org.sonatype.oss</groupId>
@@ -194,6 +194,9 @@ public class FilerClient {
.build()).getEntry();
return fixEntryAfterReading(entry);
} catch (Exception e) {
if (e.getMessage().indexOf("filer: no entry is found in filer store")>0){
return null;
}
LOG.warn("lookupEntry {}/{}: {}", directory, entryName, e);
return null;
}