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

kv: rename gcQueue to mvccGCQueue #74109

Merged
merged 2 commits into from Dec 21, 2021

Conversation

nvanbenschoten
Copy link
Member

This commit renames the "GC queue" to the "MVCC GC queue" (which GC's old MVCC
versions) to avoid confusion with the "replica GC queue" (which GC's abandoned
replicas). We've already been using this terminology in various other contexts
to avoid confusion, so this refactor updates the code to reflect this naming.

This comes in response to #73838, which found a bug that had survived for three
years and was a direct consequence of this ambiguous naming.

The commit doesn't go quite as far as renaming the pkg/kv/kvserver/gc package,
but that could be a follow-up to this commit.

@nvanbenschoten nvanbenschoten requested a review from a team as a code owner December 20, 2021 23:21
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nvanbenschoten nvanbenschoten requested review from a team and dt and removed request for a team and dt December 21, 2021 03:00
Split out from next commit to avoid confusing git.
pkg/server/admin.go Show resolved Hide resolved
pkg/server/admin_test.go Outdated Show resolved Hide resolved
This commit renames the "GC queue" to the "MVCC GC queue" (which GC's old MVCC
versions) to avoid confusion with the "replica GC queue" (which GC's abandoned
replicas). We've already been using this terminology in various other contexts
to avoid confusion, so this refactor updates the code to reflect this naming.

This comes in response to cockroachdb#73838, which found a bug that had survived for three
years and was a direct consequence of this ambiguous naming.

The commit doesn't go quite as far as renaming the `pkg/kv/kvserver/gc` package,
but that could be a follow-up to this commit.
@nvanbenschoten
Copy link
Member Author

TFTR!

bors r=tbg

@craig
Copy link
Contributor

craig bot commented Dec 21, 2021

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Contributor

craig bot commented Dec 21, 2021

Build succeeded:

@craig craig bot merged commit 299abc8 into cockroachdb:master Dec 21, 2021
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/mvccGCQueue branch December 22, 2021 01:10
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.

None yet

3 participants