Skip to content

Commit

Permalink
Add extra logging into IndexFoldersDeletionListenerIT (#93270)
Browse files Browse the repository at this point in the history
Relates #93226
Backport of #93262
  • Loading branch information
fcofdez committed Jan 26, 2023
1 parent a59a039 commit 157dead
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.elasticsearch.indices.IndicesService;
import org.elasticsearch.test.ESIntegTestCase;
import org.elasticsearch.test.InternalTestCluster;
import org.elasticsearch.test.junit.annotations.TestLogging;

import java.nio.file.Files;
import java.nio.file.Path;
Expand Down Expand Up @@ -130,6 +131,12 @@ public void testListenersInvokedWhenIndexIsDeleted() throws Exception {
}, 30L, TimeUnit.SECONDS);
}

@TestLogging(
reason = "Debug #93226",
value = "org.elasticsearch.indices.cluster.IndicesClusterStateService:DEBUG,"
+ "org.elasticsearch.indices.IndicesService:DEBUG,"
+ "org.elasticsearch.index.IndexService:DEBUG"
)
public void testListenersInvokedWhenIndexIsRelocated() throws Exception {
final String masterNode = internalCluster().startMasterOnlyNode();
internalCluster().startDataOnlyNodes(4);
Expand Down Expand Up @@ -168,6 +175,7 @@ public void testListenersInvokedWhenIndexIsRelocated() throws Exception {
}

final List<String> excludedNodes = randomSubsetOf(2, shardsByNodes.keySet());
logger.info("--> excluding nodes {}", excludedNodes);
assertAcked(
client().admin()
.indices()
Expand Down

0 comments on commit 157dead

Please sign in to comment.