Browse Source

HCFS: avoid verbose file not found exception stack trace

pull/1060/head
Chris Lu 5 years ago
parent
commit
60c9215a00
  1. 2
      other/java/client/pom.xml
  2. 3
      other/java/client/src/main/java/seaweedfs/client/FilerClient.java
  3. 2
      other/java/hdfs2/dependency-reduced-pom.xml
  4. 2
      other/java/hdfs2/pom.xml
  5. 2
      other/java/hdfs3/dependency-reduced-pom.xml
  6. 2
      other/java/hdfs3/pom.xml
  7. 2
      weed/server/filer_grpc_server.go

2
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>

3
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;
}

2
other/java/hdfs2/dependency-reduced-pom.xml

@ -123,7 +123,7 @@
</snapshotRepository>
</distributionManagement>
<properties>
<seaweedfs.client.version>1.1.3</seaweedfs.client.version>
<seaweedfs.client.version>1.1.5</seaweedfs.client.version>
<hadoop.version>2.9.2</hadoop.version>
</properties>
</project>

2
other/java/hdfs2/pom.xml

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<properties>
<seaweedfs.client.version>1.1.3</seaweedfs.client.version>
<seaweedfs.client.version>1.1.5</seaweedfs.client.version>
<hadoop.version>2.9.2</hadoop.version>
</properties>

2
other/java/hdfs3/dependency-reduced-pom.xml

@ -123,7 +123,7 @@
</snapshotRepository>
</distributionManagement>
<properties>
<seaweedfs.client.version>1.1.3</seaweedfs.client.version>
<seaweedfs.client.version>1.1.5</seaweedfs.client.version>
<hadoop.version>3.1.1</hadoop.version>
</properties>
</project>

2
other/java/hdfs3/pom.xml

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<properties>
<seaweedfs.client.version>1.1.3</seaweedfs.client.version>
<seaweedfs.client.version>1.1.5</seaweedfs.client.version>
<hadoop.version>3.1.1</hadoop.version>
</properties>

2
weed/server/filer_grpc_server.go

@ -20,7 +20,7 @@ func (fs *FilerServer) LookupDirectoryEntry(ctx context.Context, req *filer_pb.L
entry, err := fs.filer.FindEntry(ctx, filer2.FullPath(filepath.ToSlash(filepath.Join(req.Directory, req.Name))))
if err != nil {
return nil, fmt.Errorf("%s not found under %s: %v", req.Name, req.Directory, err)
return nil, err
}
return &filer_pb.LookupDirectoryEntryResponse{

Loading…
Cancel
Save