Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v14] Fix backends with prefixes #47490

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Conversation

rosstimothy
Copy link
Contributor

Backport #47238 to branch/v14

Note: this only backports the file name changes and the tests to prevent the original bug from being missed when backporting the backend.Key changes.

@rosstimothy rosstimothy added the no-changelog Indicates that a PR does not require a changelog entry label Oct 11, 2024
#46701 incorrectly changed how the prefixes for the etcd and dynamo
backends were applied and removed. In addition, the backend lock
key was not being constructed correctly and caused acquisition of
locks to fail on a cluster that had been upgraded.

Tests have been added to ensure that keys are now being constructed
correctly in all cases. Additionally, backend/helpers.go was moved
to backed/lock.go to better described what functionality the file
contains.

Backends with prefixes (etcd, dynamo) were incorrectly constructing
the key for locks. In addition the prefixes were not being trimmed
correctly which broke CAS operations.
@rosstimothy rosstimothy force-pushed the tross/backport-47238/v14 branch from 11c5c07 to 332b65e Compare October 11, 2024 14:45
@rosstimothy rosstimothy marked this pull request as ready for review October 11, 2024 15:07
@rosstimothy rosstimothy changed the title [v14] Fix backends with prefixes (#47238) [v14] Fix backends with prefixes Oct 11, 2024
@rosstimothy rosstimothy added this pull request to the merge queue Oct 15, 2024
Merged via the queue into branch/v14 with commit ac878f3 Oct 15, 2024
31 checks passed
@rosstimothy rosstimothy deleted the tross/backport-47238/v14 branch October 15, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants