Skip to content

Commit

Permalink
Fix searchable snapshot to not sync from remote
Browse files Browse the repository at this point in the history
Signed-off-by: Bukhtawar Khan <bukhtawa@amazon.com>
  • Loading branch information
Bukhtawar committed Sep 2, 2023
1 parent 09e08e3 commit 6f60931
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2320,6 +2320,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 6f60931

Please sign in to comment.