Skip to content

Retire completed data moves from the relocation queue - #14727

Draft
tclinkenbeard-oai wants to merge 1 commit into
apple:mainfrom
tclinkenbeard-oai:dev/tclinkenbeard/dd-retire-completed-move
Draft

tclinkenbeard-oai wants to merge 1 commit into
apple:mainfrom
tclinkenbeard-oai:dev/tclinkenbeard/dd-retire-completed-move

Conversation

@tclinkenbeard-oai

Copy link
Copy Markdown
Collaborator

The relocation queue checks whether it still owns a completed move by calling getAffectedRangesAfterInsertion. The preview fills the requested range with a default value whose move ID is zero. The ownership check fails for a live ID, leaving the completed move in the queue. A later cancellation for a covering range can then report DDEnqueueCancelledDataMoveConflict and skip cleanup.

Look up the stored entry at the start of the range. Retire it when the full range and move ID still match and no cancellation is in progress. The regression checks successful retirement and preserves entries with a different ID, a different boundary, or a pending cancellation.

Validation

  • The new regression failed with the previous lookup in native and simulated modes. On this PR, all 74 data distribution unit tests passed in each mode. The pipeline saturation, bulk-load destination failure, and forward metadata migration simulations also passed.
  • I compared the two queue implementations on a build including the team selection change from Use the configured storage policy in RandomMoveKeys #14722. With ShardEncodeForwardConfig seed 1154847711, both runs finished the same child move at simulated second 229.665. At 253.269 the original queue rejected the parent cancellation. The patched queue accepted it, committed cleanup at 253.627, and passed all three phases. Both runs included the workload behavior that Honor the database shard metadata format in RandomMoveKeys #14726 addresses.

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos-m1 on macOS

  • Commit ID: a45d44a
  • Duration 0:18:51
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-ide on Linux RHEL 9

  • Commit ID: a45d44a
  • Duration 0:19:56
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

This branch has not been deployed

No deployments
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