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 (#11878) (#12091)

(cherry picked from commit f9ab801)

Signed-off-by: Suraj Singh <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 9da5835 commit 810ceb6
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 810ceb6

Please sign in to comment.