mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjust throwing exception
This commit is contained in:
parent
d3d3609a03
commit
9449100757
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue