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);