We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9739244 commit 162cf77Copy full SHA for 162cf77
server/src/test/java/org/elasticsearch/index/seqno/RetentionLeaseIT.java
@@ -368,6 +368,9 @@ public void testRetentionLeasesSyncOnRecovery() throws Exception {
368
.getShardOrNull(new ShardId(resolveIndex("index"), 0));
369
final Map<String, RetentionLease> retentionLeasesOnReplica = RetentionLeases.toMap(replica.getRetentionLeases());
370
assertThat(retentionLeasesOnReplica, equalTo(currentRetentionLeases));
371
+
372
+ // check retention leases have been written on the replica; see RecoveryTarget#finalizeRecovery
373
+ assertThat(currentRetentionLeases, equalTo(RetentionLeases.toMap(replica.loadRetentionLeases())));
374
}
375
376
0 commit comments