Skip to content

Commit fee33d5

Browse files
committed
Add test logging to CCR retention lease test
This commit adds some additional logging to a failing CCR retention lease test so that the nature of the failure can be completely understood before attempting to push a fix. Relates #39268
1 parent 14510a9 commit fee33d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/CcrRetentionLeaseIT.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import org.elasticsearch.plugins.Plugin;
4141
import org.elasticsearch.snapshots.RestoreInfo;
4242
import org.elasticsearch.snapshots.RestoreService;
43+
import org.elasticsearch.test.junit.annotations.TestLogging;
4344
import org.elasticsearch.test.transport.MockTransportService;
4445
import org.elasticsearch.transport.ConnectTransportException;
4546
import org.elasticsearch.transport.TransportService;
@@ -190,7 +191,7 @@ public void testRetentionLeaseIsTakenAtTheStartOfRecovery() throws Exception {
190191

191192
}
192193

193-
@AwaitsFix(bugUrl="https://github.com/elastic/elasticsearch/issues/39268")
194+
@TestLogging(value = "org.elasticsearch.xpack.ccr:trace")
194195
public void testRetentionLeaseIsRenewedDuringRecovery() throws Exception {
195196
final String leaderIndex = "leader";
196197
final int numberOfShards = randomIntBetween(1, 3);
@@ -211,8 +212,10 @@ public void testRetentionLeaseIsRenewedDuringRecovery() throws Exception {
211212
(MockTransportService) getFollowerCluster().getInstance(TransportService.class, senderNode.value.getName());
212213
senderTransportService.addSendBehavior(
213214
(connection, requestId, action, request, options) -> {
215+
logger.info("action [{}]", action);
214216
if (ClearCcrRestoreSessionAction.NAME.equals(action)) {
215217
try {
218+
logger.info("latching");
216219
latch.await();
217220
} catch (final InterruptedException e) {
218221
fail(e.toString());

0 commit comments

Comments
 (0)