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)

Signed-off-by: Suraj Singh <surajrider@gmail.com>
(cherry picked from commit f9ab801)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Jan 30, 2024
1 parent 9da5835 commit 1919aff
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 1919aff

Please sign in to comment.