Skip to content

instancestorage: load all regions from the system DB when reclaiming IDs#92248

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
jaylim-crl:jay/221121-instance-multiregion-enum
Dec 5, 2022
Merged

instancestorage: load all regions from the system DB when reclaiming IDs#92248
craig[bot] merged 1 commit intocockroachdb:masterfrom
jaylim-crl:jay/221121-instance-multiregion-enum

Conversation

@jaylim-crl
Copy link
Copy Markdown
Contributor

@jaylim-crl jaylim-crl commented Nov 21, 2022

Follow up to #92010 and #91694.

This commit addresses a TODO comment by loading all region enum members from
the system database when reclaiming IDs. The list of regions is read each time
the loop runs since there's a possibiilty where regions are added or removed
from the system DB.

Epic: None

Release note: None

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@jaylim-crl jaylim-crl force-pushed the jay/221121-instance-multiregion-enum branch 3 times, most recently from 23d39d7 to b3b3bdd Compare November 22, 2022 12:29
@jaylim-crl jaylim-crl marked this pull request as ready for review November 22, 2022 12:30
@jaylim-crl jaylim-crl requested review from a team as code owners November 22, 2022 12:30
@jaylim-crl jaylim-crl requested review from ajwerner and removed request for a team November 22, 2022 12:30
@jaylim-crl jaylim-crl marked this pull request as draft November 22, 2022 15:36
@jaylim-crl
Copy link
Copy Markdown
Contributor Author

Setting this as a draft to fix the tests.

@jaylim-crl jaylim-crl force-pushed the jay/221121-instance-multiregion-enum branch from b3b3bdd to 1d09763 Compare November 23, 2022 12:46
Follow up to cockroachdb#92010 and cockroachdb#91694.

This commit addresses a TODO comment by loading all region enum members from
the system database when reclaiming IDs. The list of regions is read each time
the loop runs since there's a possibiilty where regions are added or removed
from the system DB.

Epic: None

Release note: None
@jaylim-crl jaylim-crl force-pushed the jay/221121-instance-multiregion-enum branch from 1d09763 to 2923074 Compare November 23, 2022 16:55
@jaylim-crl jaylim-crl marked this pull request as ready for review November 23, 2022 16:55
@jaylim-crl jaylim-crl requested a review from a team November 23, 2022 16:55
Copy link
Copy Markdown
Collaborator

@jeffswenson jeffswenson left a comment

Choose a reason for hiding this comment

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

LGTM! 💯

@jaylim-crl
Copy link
Copy Markdown
Contributor Author

TFTR!

bors r=JeffSwenson

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 5, 2022

Build succeeded:

@craig craig bot merged commit c4c1d20 into cockroachdb:master Dec 5, 2022
@jaylim-crl jaylim-crl deleted the jay/221121-instance-multiregion-enum branch December 5, 2022 22:49
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.

3 participants