diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-10 01:06:54 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-10 01:06:54 -0700 |
| commit | 9449100757e8d9cd37944bde48b89616db20bf03 (patch) | |
| tree | a69df4d184aa0f8088423710530078c81ce7bc15 /other/java | |
| parent | d3d3609a03e3dae80dc72444487806c4be96580a (diff) | |
| download | seaweedfs-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.java | 3 |
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; } |
