aboutsummaryrefslogtreecommitdiff
path: root/other
diff options
context:
space:
mode:
authorChen Honghai <68315469+LuuucasChen@users.noreply.github.com>2024-01-23 04:49:09 +0800
committerGitHub <noreply@github.com>2024-01-22 12:49:09 -0800
commit2158e163f7459bbd8e5a9c16023e38b00e1b6a68 (patch)
tree4d04a0c499a0adcc1df47c20c4cf3ed2a4acd9be /other
parent32977a053c8cb3bd99647beb1ab4a16333bef416 (diff)
downloadseaweedfs-2158e163f7459bbd8e5a9c16023e38b00e1b6a68.tar.xz
seaweedfs-2158e163f7459bbd8e5a9c16023e38b00e1b6a68.zip
Update the solution when a file cannot be located. (#5223)
Change the solution when a file cannot be located.
Diffstat (limited to 'other')
-rw-r--r--other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java2
1 files changed, 1 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 41033befb..031e904d2 100644
--- a/other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java
+++ b/other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java
@@ -69,7 +69,7 @@ public class SeaweedRead {
if (locations == null || locations.getLocationsCount() == 0) {
LOG.error("failed to locate {}", chunkView.fileId);
volumeIdCache.clearLocations(volumeId);
- return 0;
+ throw new IOException("failed to locate file");
}
int len = readChunkView(filerClient, startOffset, buf, chunkView, locations);