Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
Signed-off-by: Shubh Sahu <[email protected]>
  • Loading branch information
Shubh Sahu committed Jan 2, 2025
1 parent 60cc63f commit 3e86036
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,9 @@ public Tuple<Tuple<Long, Long>, Map<String, Long>> acquireLastRemoteUploadedInde
throw new IllegalStateException("Index is not assigned on Remote Node");
}
RemoteSegmentMetadata lastUploadedMetadata = getRemoteDirectory().readLatestMetadataFile();
if (lastUploadedMetadata == null) {
throw new IllegalStateException("No metadata file found in remote store");
}
final Map<String, Long> indexFilesToFileLengthMap = lastUploadedMetadata.getMetadata()
.entrySet()
.stream()
Expand Down

0 comments on commit 3e86036

Please sign in to comment.