Skip to content

Commit

Permalink
Fix IndexFoldersDeletionListenerIT#testListenersInvokedWhenIndexIsDan…
Browse files Browse the repository at this point in the history
…gling (elastic#111440)

Closes elastic#111192
  • Loading branch information
nicktindall authored Aug 1, 2024
1 parent 9958529 commit b3e7d43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public void beforeIndexFoldersDeleted(Index index, IndexSettings indexSettings,

@Override
public void beforeShardFoldersDeleted(ShardId shardId, IndexSettings indexSettings, Path[] shardPaths) {
deletedShards.computeIfAbsent(shardId.getIndex(), i -> new ArrayList<>()).add(shardId);
deletedShards.computeIfAbsent(shardId.getIndex(), i -> Collections.synchronizedList(new ArrayList<>())).add(shardId);
}
});
}
Expand Down

0 comments on commit b3e7d43

Please sign in to comment.