Skip to content

Commit 1d0930f

Browse files
committed
Add missing GCP update (elastic#43632)
1 parent 465ea7b commit 1d0930f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java

+3
Original file line numberDiff line numberDiff line change
@@ -3557,6 +3557,9 @@ public void testSegmentMemoryTrackedInBreaker() throws Exception {
35573557
// In order to instruct the merge policy not to keep a fully deleted segment,
35583558
// we need to flush and make that commit safe so that the SoftDeletesPolicy can drop everything.
35593559
if (IndexSettings.INDEX_SOFT_DELETES_SETTING.get(settings)) {
3560+
primary.updateGlobalCheckpointForShard(
3561+
primary.routingEntry().allocationId().getId(),
3562+
primary.getLastSyncedGlobalCheckpoint());
35603563
primary.advancePeerRecoveryRetentionLeasesToGlobalCheckpoints();
35613564
primary.sync();
35623565
flushShard(primary);

0 commit comments

Comments
 (0)