Skip to content

[release-24.0] etcd2topo: bound lock-acquisition cleanup RPCs (#20149)#20152

Merged
mattlord merged 2 commits into
release-24.0from
backport-20149-to-release-24.0
May 22, 2026
Merged

[release-24.0] etcd2topo: bound lock-acquisition cleanup RPCs (#20149)#20152
mattlord merged 2 commits into
release-24.0from
backport-20149-to-release-24.0

Conversation

@vitess-bot
Copy link
Copy Markdown
Contributor

@vitess-bot vitess-bot Bot commented May 20, 2026

Description

This is a backport of #20149

Copilot AI review requested due to automatic review settings May 20, 2026 18:17
@vitess-bot vitess-bot Bot added Type: Bug Backport This is a backport Skip CI Skip CI actions from running Merge Conflict Component: Topology labels May 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@vitess-bot
Copy link
Copy Markdown
Contributor Author

vitess-bot Bot commented May 20, 2026

Hello @arthurschreiber, there are conflicts in this backport.

Please address them in order to merge this Pull Request. You can execute the snippet below to reset your branch and resolve the conflict manually.

Make sure you replace origin by the name of the vitessio/vitess remote

git fetch --all
gh pr checkout 20152
git reset --hard origin/release-24.0
git cherry-pick -m 1 fe26c0dc2168557278b914bcab2061005bf6a268

@github-actions github-actions Bot added this to the v24.0.2 milestone May 20, 2026
@arthurschreiber arthurschreiber removed Skip CI Skip CI actions from running Merge Conflict labels May 22, 2026
@arthurschreiber arthurschreiber self-assigned this May 22, 2026
Adopt the upstream PR's `update(t, ctx, ts, id)` signature in
go/vt/vtctl/workflow/utils_test.go. The release-24.0 base used
`context.Background()` inside `update` while main used `t.Context()`;
both are now replaced by the caller-provided `shortCtx`, matching
the cherry-picked change in fe26c0d.

Signed-off-by: Arthur Schreiber <arthur@planetscale.com>
@arthurschreiber
Copy link
Copy Markdown
Member

Resolved the conflict in go/vt/vtctl/workflow/utils_test.go.

The cherry-pick of #20149 hit a 3-way conflict on update() because release-24.0 uses context.Background() inside the function body, whereas main (parent of fe26c0d) had been updated to use t.Context() (which doesn't exist on release-24.0). The upstream PR replaces both with a caller-provided ctx.

Resolved by adopting the upstream signature exactly:

func update(t *testing.T, ctx context.Context, ts *topo.Server, id int) {

and dropping the inner context.WithCancel(...) block — the caller (testConcurrentKeyspaceRoutingRulesUpdates) was already updated by the cherry-pick to pass shortCtx.

Verified locally:

  • go build ./go/vt/topo/etcd2topo/... ./go/vt/vtctl/workflow/... — clean
  • go test ./go/vt/topo/etcd2topo/ — passes
  • go test -run TestConcurrentKeyspaceRoutingRulesUpdates ./go/vt/vtctl/workflow/ — passes
  • gofumpt / goimports — clean

@arthurschreiber arthurschreiber marked this pull request as ready for review May 22, 2026 09:52
@arthurschreiber arthurschreiber requested a review from mattlord as a code owner May 22, 2026 09:52
Copilot AI review requested due to automatic review settings May 22, 2026 09:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@mattlord mattlord merged commit c04d3c8 into release-24.0 May 22, 2026
112 checks passed
@mattlord mattlord deleted the backport-20149-to-release-24.0 branch May 22, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants