Skip to content

Commit f9ab801

Browse files
authored
Enable cluster and replication package debug logging for testSingleIndexShardAllocation test (opensearch-project#11878)
Signed-off-by: Suraj Singh <surajrider@gmail.com>
1 parent 8ed66ae commit f9ab801

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationAllocationIT.java

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.opensearch.indices.replication.common.ReplicationType;
2323
import org.opensearch.test.InternalTestCluster;
2424
import org.opensearch.test.OpenSearchIntegTestCase;
25+
import org.opensearch.test.junit.annotations.TestLogging;
2526

2627
import java.util.ArrayList;
2728
import java.util.List;
@@ -128,6 +129,7 @@ public void testPerIndexPrimaryAllocation() throws Exception {
128129
* ensures the primary shard distribution is balanced.
129130
*
130131
*/
132+
@TestLogging(reason = "Enable debug logs from cluster and index replication package", value = "org.opensearch.cluster:DEBUG,org.opensearch.indices.replication:DEBUG")
131133
public void testSingleIndexShardAllocation() throws Exception {
132134
internalCluster().startClusterManagerOnlyNode();
133135
final int maxReplicaCount = 1;

0 commit comments

Comments
 (0)