mirror of
https://github.com/chrislusf/seaweedfs
synced 2025-09-18 01:02:46 +02:00
Update the solution when a file cannot be located. (#5223)
Change the solution when a file cannot be located.
This commit is contained in:
parent
32977a053c
commit
2158e163f7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue