Browse Source
Update the solution when a file cannot be located. (#5223)
Change the solution when a file cannot be located.
pull/5233/head
Chen Honghai
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java
|
@ -69,7 +69,7 @@ public class SeaweedRead { |
|
|
if (locations == null || locations.getLocationsCount() == 0) { |
|
|
if (locations == null || locations.getLocationsCount() == 0) { |
|
|
LOG.error("failed to locate {}", chunkView.fileId); |
|
|
LOG.error("failed to locate {}", chunkView.fileId); |
|
|
volumeIdCache.clearLocations(volumeId); |
|
|
volumeIdCache.clearLocations(volumeId); |
|
|
return 0; |
|
|
|
|
|
|
|
|
throw new IOException("failed to locate file"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
int len = readChunkView(filerClient, startOffset, buf, chunkView, locations); |
|
|
int len = readChunkView(filerClient, startOffset, buf, chunkView, locations); |
|
|