Skip to content

Commit

Permalink
Await for in-flight segments to complete transfer before hand-off
Browse files Browse the repository at this point in the history
Signed-off-by: Bukhtawar Khan <bukhtawa@amazon.com>
  • Loading branch information
Bukhtawar committed Jul 11, 2023
1 parent 5f3796e commit 0a14445
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions server/src/main/java/org/opensearch/index/shard/IndexShard.java
Original file line number Diff line number Diff line change
Expand Up @@ -3659,18 +3659,6 @@ private DocumentMapperForType docMapper() {
return mapperService.documentMapperWithAutoCreate();
}

private void closeInternalRefreshListeners() {
for (ReferenceManager.RefreshListener internalRefreshListener : internalRefreshListeners) {
if (internalRefreshListener instanceof Closeable) {
try {
((Closeable) internalRefreshListener).close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}

private EngineConfig newEngineConfig(LongSupplier globalCheckpointSupplier) throws IOException {
final Sort indexSort = indexSortSupplier.get();
final Engine.Warmer warmer = reader -> {
Expand Down

0 comments on commit 0a14445

Please sign in to comment.