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

sql: make multi-tenancy errors report to telemetry #54256

Merged
merged 2 commits into from
Sep 14, 2020

Conversation

knz
Copy link
Contributor

@knz knz commented Sep 11, 2020

Fixes #48164.

Issues referenced, I also added the X-anchored-telemetry label to them on github (we keep those issues open on github until their reference in the code is removed):

#54254
#54255
#54250
#54251
#54252
#49854
#48274
#47150
#47971
#47970
#47900
#47925

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@asubiotto asubiotto left a comment

Choose a reason for hiding this comment

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

:lgtm: thanks for doing this!

Reviewed 10 of 10 files at r1, 5 of 5 files at r2.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @knz, @nvanbenschoten, @spaskob, and @tbg)


pkg/util/errorutil/tenant_deprecated_wrapper.go, line 84 at r1 (raw file):

}

// FeatureNotAvailableToNonSystemTenantsIssue is to be used with the Optinal

nit: s/Optinal/Optional

There was an issue number missing in a few places, because the
argument list made it optional. This patch fixes it and links
too the relevant issues.

Release note: None
This change ensures that multitenancy errors get collected in
telemetry.

By also making the issue number non-optional, this patch also catches
a few more cases that were missing open issues.

Release note: None
Copy link
Contributor Author

@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.

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @nvanbenschoten, @spaskob, and @tbg)


pkg/util/errorutil/tenant_deprecated_wrapper.go, line 84 at r1 (raw file):

Previously, asubiotto (Alfonso Subiotto Marqués) wrote…

nit: s/Optinal/Optional

Done.

@knz
Copy link
Contributor Author

knz commented Sep 14, 2020

TFYR!

bors r=asubiotto

@craig
Copy link
Contributor

craig bot commented Sep 14, 2020

Build succeeded:

@craig craig bot merged commit 40f03d9 into cockroachdb:master Sep 14, 2020
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.

errorutils: UnsupportedWithMultiTenancy is incomplete
3 participants