Skip to content

Commit

Permalink
Fix searchable snapshot to not sync from remote (#9791) (#9824)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1b32913)

Signed-off-by: Shourya Dutta Biswas <114977491+shourya035@users.noreply.github.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 053df8c commit 0d4263e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2332,6 +2332,7 @@ private void innerOpenEngineAndTranslog(LongSupplier globalCheckpointSupplier) t
}

private void innerOpenEngineAndTranslog(LongSupplier globalCheckpointSupplier, boolean syncFromRemote) throws IOException {
syncFromRemote = syncFromRemote && indexSettings.isRemoteSnapshot() == false;
assert Thread.holdsLock(mutex) == false : "opening engine under mutex";
if (state != IndexShardState.RECOVERING) {
throw new IndexShardNotRecoveringException(shardId, state);
Expand Down

0 comments on commit 0d4263e

Please sign in to comment.