Skip to content

Commit

Permalink
Add missing GCP update (elastic#43632)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveCTurner committed Jun 26, 2019
1 parent 465ea7b commit 1d0930f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3557,6 +3557,9 @@ public void testSegmentMemoryTrackedInBreaker() throws Exception {
// In order to instruct the merge policy not to keep a fully deleted segment,
// we need to flush and make that commit safe so that the SoftDeletesPolicy can drop everything.
if (IndexSettings.INDEX_SOFT_DELETES_SETTING.get(settings)) {
primary.updateGlobalCheckpointForShard(
primary.routingEntry().allocationId().getId(),
primary.getLastSyncedGlobalCheckpoint());
primary.advancePeerRecoveryRetentionLeasesToGlobalCheckpoints();
primary.sync();
flushShard(primary);
Expand Down

0 comments on commit 1d0930f

Please sign in to comment.