Skip to content

Commit

Permalink
[Segment Replication] Unmute Test SegmentReplicationTargetServiceTest…
Browse files Browse the repository at this point in the history
…s.testShardAlreadyReplicating (#10660)

* Remove Awaits fix.

Signed-off-by: Rishikesh1159 <[email protected]>

* apply spotlesscheck.

Signed-off-by: Rishikesh1159 <[email protected]>

* add test logging.

Signed-off-by: Rishikesh1159 <[email protected]>

---------

Signed-off-by: Rishikesh1159 <[email protected]>
  • Loading branch information
Rishikesh1159 authored Oct 18, 2023
1 parent 4632f4b commit e942483
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.opensearch.indices.replication.common.ReplicationLuceneIndex;
import org.opensearch.indices.replication.common.ReplicationType;
import org.opensearch.telemetry.tracing.noop.NoopTracer;
import org.opensearch.test.junit.annotations.TestLogging;
import org.opensearch.test.transport.CapturingTransport;
import org.opensearch.threadpool.TestThreadPool;
import org.opensearch.threadpool.ThreadPool;
Expand Down Expand Up @@ -246,7 +247,7 @@ public void testAlreadyOnNewCheckpoint() {
verify(spy, times(0)).startReplication(any(), any(), any());
}

@AwaitsFix(bugUrl = "https:/opensearch-project/OpenSearch/issues/8928")
@TestLogging(reason = "Getting trace logs from replication package", value = "org.opensearch.indices.replication:TRACE")
public void testShardAlreadyReplicating() {
CountDownLatch blockGetCheckpointMetadata = new CountDownLatch(1);
SegmentReplicationSource source = new TestReplicationSource() {
Expand Down

0 comments on commit e942483

Please sign in to comment.