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

status: set codec from context in table stats requests #97511

Merged

Conversation

dhartunian
Copy link
Collaborator

Replaced usages of TODOSQLCodec with the codec from sqlServer.execCfg. This enables the DB and Table stats endpoints to work from tenants.

Resolves: #82879

Relates to: #90261, #90267, #90268, #90264, #89429

Epic: CRDB-12100

Release note: None

@dhartunian dhartunian requested review from knz, arulajmani, j82w, THardy98 and a team February 22, 2023 20:15
@dhartunian dhartunian requested a review from a team as a code owner February 22, 2023 20:15
@blathers-crl
Copy link

blathers-crl bot commented Feb 22, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
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.

This is great! But it also needs a test.

@dhartunian dhartunian force-pushed the set-correct-codec-on-tenant-db-stats branch from 4661cca to f60e751 Compare February 27, 2023 23:34
Replaced usages of `TODOSQLCodec` with the codec from `sqlServer.execCfg`. This
enables the DB and Table stats endpoints to work from tenants.

Resolves: cockroachdb#82879

Relates to: cockroachdb#90261, cockroachdb#90267, cockroachdb#90268, cockroachdb#90264, cockroachdb#89429

Epic: CRDB-12100

Release note: None
@dhartunian dhartunian force-pushed the set-correct-codec-on-tenant-db-stats branch from f60e751 to 4308e91 Compare February 28, 2023 13:25
Copy link
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.

thanks 💯

@dhartunian
Copy link
Collaborator Author

bors r=knz

@craig
Copy link
Contributor

craig bot commented Mar 1, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Mar 1, 2023

Build succeeded:

@craig craig bot merged commit c3348b0 into cockroachdb:master Mar 1, 2023
@dhartunian dhartunian deleted the set-correct-codec-on-tenant-db-stats branch March 1, 2023 21:14
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.

server: the TableDetails, TableStats, DatabaseDetails API don't decode with a proper tenant prefix
4 participants