We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 465ea7b commit 1d0930fCopy full SHA for 1d0930f
server/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java
@@ -3557,6 +3557,9 @@ public void testSegmentMemoryTrackedInBreaker() throws Exception {
3557
// In order to instruct the merge policy not to keep a fully deleted segment,
3558
// we need to flush and make that commit safe so that the SoftDeletesPolicy can drop everything.
3559
if (IndexSettings.INDEX_SOFT_DELETES_SETTING.get(settings)) {
3560
+ primary.updateGlobalCheckpointForShard(
3561
+ primary.routingEntry().allocationId().getId(),
3562
+ primary.getLastSyncedGlobalCheckpoint());
3563
primary.advancePeerRecoveryRetentionLeasesToGlobalCheckpoints();
3564
primary.sync();
3565
flushShard(primary);
0 commit comments