SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
Update the solution when a file cannot be located. (#5223)
Chen Honghai2158e163f745
diff --git a/other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java b/other/java/client/src/main/java/seaweedfs/client/SeaweedRead.javaindex 41033befbf..031e904d2f 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);