aboutsummaryrefslogtreecommitdiff
path: root/other/java
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-10-10 01:06:54 -0700
committerChris Lu <chris.lu@gmail.com>2020-10-10 01:06:54 -0700
commit9449100757e8d9cd37944bde48b89616db20bf03 (patch)
treea69df4d184aa0f8088423710530078c81ce7bc15 /other/java
parentd3d3609a03e3dae80dc72444487806c4be96580a (diff)
downloadseaweedfs-9449100757e8d9cd37944bde48b89616db20bf03.tar.xz
seaweedfs-9449100757e8d9cd37944bde48b89616db20bf03.zip
adjust throwing exception
Diffstat (limited to 'other/java')
-rw-r--r--other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java b/other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java
index 0e8919d06..ab2407dec 100644
--- a/other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java
+++ b/other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java
@@ -104,6 +104,7 @@ public class SeaweedRead {
String url = String.format("http://%s/%s", location.getUrl(), chunkView.fileId);
try {
data = doFetchOneFullChunkData(chunkView, url);
+ lastException = null;
break;
} catch (IOException ioe) {
LOG.debug("doFetchFullChunkData {} :{}", url, ioe);
@@ -119,7 +120,7 @@ public class SeaweedRead {
}
}
- if (data == null && lastException != null) {
+ if (lastException != null) {
throw lastException;
}