diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-09-01 21:40:26 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-09-01 21:40:26 -0700 |
| commit | 60c9215a00d9b72be6f7d0e5382227d2b57de9d5 (patch) | |
| tree | 6f77dab517f714446e2126542c0235f6dce8917b /other/java/client | |
| parent | af8b413a9cebea0109ebdf16bd18078da3c551a1 (diff) | |
| download | seaweedfs-60c9215a00d9b72be6f7d0e5382227d2b57de9d5.tar.xz seaweedfs-60c9215a00d9b72be6f7d0e5382227d2b57de9d5.zip | |
HCFS: avoid verbose file not found exception stack trace
Diffstat (limited to 'other/java/client')
| -rw-r--r-- | other/java/client/pom.xml | 2 | ||||
| -rw-r--r-- | other/java/client/src/main/java/seaweedfs/client/FilerClient.java | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/other/java/client/pom.xml b/other/java/client/pom.xml index c37b9aab8..dc3f8f2ca 100644 --- a/other/java/client/pom.xml +++ b/other/java/client/pom.xml @@ -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> diff --git a/other/java/client/src/main/java/seaweedfs/client/FilerClient.java b/other/java/client/src/main/java/seaweedfs/client/FilerClient.java index 2a40f3200..1ea4cb889 100644 --- a/other/java/client/src/main/java/seaweedfs/client/FilerClient.java +++ b/other/java/client/src/main/java/seaweedfs/client/FilerClient.java @@ -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; } |
