Skip to content

Commit

Permalink
Enable cluster package debug logging for testSingleIndexShardAllocati…
Browse files Browse the repository at this point in the history
…on flaky test

Signed-off-by: Suraj Singh <[email protected]>
  • Loading branch information
dreamer-89 committed Jan 12, 2024
1 parent a9ce180 commit 53659a4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.opensearch.indices.replication.common.ReplicationType;
import org.opensearch.test.InternalTestCluster;
import org.opensearch.test.OpenSearchIntegTestCase;
import org.opensearch.test.junit.annotations.TestLogging;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -128,6 +129,7 @@ public void testPerIndexPrimaryAllocation() throws Exception {
* ensures the primary shard distribution is balanced.
*
*/
@TestLogging(reason = "Getting trace logs from cluster service and allocation package", value = "org.opensearch.cluster:DEBUG")
public void testSingleIndexShardAllocation() throws Exception {
internalCluster().startClusterManagerOnlyNode();
final int maxReplicaCount = 1;
Expand Down

0 comments on commit 53659a4

Please sign in to comment.