Skip to content

tenantcapabilities: introduce a decoder for tenant capabilities#94722

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
arulajmani:ten-capabilities-decoder
Jan 7, 2023
Merged

tenantcapabilities: introduce a decoder for tenant capabilities#94722
craig[bot] merged 1 commit intocockroachdb:masterfrom
arulajmani:ten-capabilities-decoder

Conversation

@arulajmani
Copy link
Copy Markdown
Collaborator

This patch introduces a decoder, which takes raw KVs from the
system.tenants table and decodes them into
(TenantID, TenantCapability) pairs.

This is currently unusued. In a future commit, we'll establish a
rangefeed over the system.tenants table to maintain a cached view
of the global capabilities state. This decoder will be used to parse the
rangefeed output. Looking towards such a watcher component, the decoder
is placed in the tenantcapabilitieswatcher package.

References #94643

Epic: CRDB-18503

Release note: None

@arulajmani arulajmani requested review from ecwall and knz January 4, 2023 20:37
@arulajmani arulajmani requested review from a team as code owners January 4, 2023 20:37
@arulajmani arulajmani requested a review from a team January 4, 2023 20:37
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 7 of 7 files at r1, 7 of 7 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @ecwall)

@arulajmani arulajmani force-pushed the ten-capabilities-decoder branch from 575741e to 5558cf7 Compare January 5, 2023 22:09
This patch introduces a decoder, which takes raw KVs from the
system.tenants table and decodes them into
(TenantID, TenantCapability) pairs.

This is currently unusued. In a future commit, we'll establish a
rangefeed over the `system.tenants` table to maintain a cached view
of the global capabilities state. This decoder will be used to parse the
rangefeed output. Looking towards such a watcher component, the decoder
is placed in the `tenantcapabilitieswatcher` package.

References cockroachdb#94643

Epic: CRDB-18503

Release note: None
@arulajmani arulajmani force-pushed the ten-capabilities-decoder branch from 5558cf7 to a57cf17 Compare January 6, 2023 16:45
@arulajmani
Copy link
Copy Markdown
Collaborator Author

Rebased on top of master now that the PR with the first commit landed. TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 6, 2023

Build failed:

@arulajmani
Copy link
Copy Markdown
Collaborator Author

flaked.

bors r=knz

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 6, 2023

This PR was included in a batch that successfully built, but then failed to merge into master. It will not be retried.

Additional information:

@arulajmani
Copy link
Copy Markdown
Collaborator Author

bors retry

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 6, 2023

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 7, 2023

Build succeeded:

@craig craig bot merged commit c2ef4c8 into cockroachdb:master Jan 7, 2023
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