Skip to content

Commit

Permalink
Merge pull request opensearch-project#149 from Bukhtawar/remote-store…
Browse files Browse the repository at this point in the history
…-enabled-its

Fix up searchable snapshot to not sync from remote
  • Loading branch information
Bukhtawar authored Sep 2, 2023
2 parents 09e08e3 + 6f60931 commit c5150b0
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 c5150b0

Please sign in to comment.