Skip to content

Commit

Permalink
Fix Spotless errors
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Kale <[email protected]>
  • Loading branch information
Sachin Kale committed Apr 16, 2024
1 parent 9fcb9da commit 8ffb8e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5054,7 +5054,10 @@ public void syncSegmentsFromRemoteSegmentStore(boolean overrideLocal, final Runn
.filter(file -> file.startsWith(RemoteSegmentStoreDirectory.SEGMENT_INFOS_SNAPSHOT_PREFIX))
.collect(Collectors.toList());
assert segmentInfosSnapshotFilenames.size() == 1;
try (ChecksumIndexInput segmentInfosInput = store.directory().openChecksumInput(segmentInfosSnapshotFilenames.get(0), IOContext.READ)) {
try (
ChecksumIndexInput segmentInfosInput = store.directory()
.openChecksumInput(segmentInfosSnapshotFilenames.get(0), IOContext.READ)
) {
infosSnapshot = SegmentInfos.readCommit(
store.directory(),
segmentInfosInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,10 @@ private void finalizeReplication(CheckpointInfoResponse checkpointInfoResponse)
.filter(file -> file.startsWith(RemoteSegmentStoreDirectory.SEGMENT_INFOS_SNAPSHOT_PREFIX))
.collect(Collectors.toList());
assert segmentInfosSnapshotFilenames.size() == 1;
try (ChecksumIndexInput segmentInfosInput = store.directory().openChecksumInput(segmentInfosSnapshotFilenames.get(0), IOContext.READ)) {
try (
ChecksumIndexInput segmentInfosInput = store.directory()
.openChecksumInput(segmentInfosSnapshotFilenames.get(0), IOContext.READ)
) {
infos = SegmentInfos.readCommit(
store.directory(),
segmentInfosInput,
Expand Down

0 comments on commit 8ffb8e6

Please sign in to comment.