Skip to content

Add interceptCheckpointUpdates to TieringStatusIT and TierCancelIT#228

Merged
Bukhtawar merged 1 commit into
Bukhtawar:improve/native-memory-admission-controlfrom
GeekGlider:fix/interceptor-tiering
May 20, 2026
Merged

Add interceptCheckpointUpdates to TieringStatusIT and TierCancelIT#228
Bukhtawar merged 1 commit into
Bukhtawar:improve/native-memory-admission-controlfrom
GeekGlider:fix/interceptor-tiering

Conversation

@GeekGlider
Copy link
Copy Markdown

Description

Adds interceptCheckpointUpdates fix to TieringStatusIT and TierCancelIT to resolve theReplicationTracker assertion race condition (GitHub opensearch-project#3923).

During tiering operations with segment replication, a checkpoint update can arrive after relocation handoff begins, triggering an assertion in ReplicationTracker.updateVisibleCheckpointForShard. The fix intercepts the UPDATE_VISIBLE_CHECKPOINT transport action and gracefully handles theAssertionError — the same approach already applied to HotToWarmTieringServiceIT andWarmToHotTieringServiceIT.

This PR is intended to be merged into opensearch-project#21749.

Related Issues

Resolves the flaky TieringStatusIT.testTieringStatus failure (muted via @AwaitsFix in opensearch-project#21749 commit 7).

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Fixes ReplicationTracker assertion race condition (opensearch-project#3923) by adding
MockTransportService interceptor to gracefully handle checkpoint updates
during relocation handoff. Removes @AwaitsFix as the root cause is now
addressed.

Signed-off-by: Kavya Aggarwal <kavyaagg@amazon.com>
@Bukhtawar Bukhtawar merged commit 8120c36 into Bukhtawar:improve/native-memory-admission-control May 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants