Skip to content

Commit

Permalink
Enable cluster and replication package debug logging for testSingleIn…
Browse files Browse the repository at this point in the history
…dexShardAllocation test

Signed-off-by: Suraj Singh <[email protected]>
  • Loading branch information
dreamer-89 committed Jan 12, 2024
1 parent a9ce180 commit 2686943
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 = "Enable debug logs from cluster and index replication package", value = "org.opensearch.cluster:DEBUG,org.opensearch.indices.replication:DEBUG")
public void testSingleIndexShardAllocation() throws Exception {
internalCluster().startClusterManagerOnlyNode();
final int maxReplicaCount = 1;
Expand Down

0 comments on commit 2686943

Please sign in to comment.