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

catalog: add telemetry for descriptor validation errors #62546

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

postamar
Copy link
Contributor

This commit adds sql.schema.validation_errors.* telemetry keys to
descriptor validation errors.

Fixes #61786.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@postamar postamar force-pushed the add-validation-telemetry branch 2 times, most recently from 3821354 to c30cfb7 Compare March 24, 2021 19:41
@postamar postamar marked this pull request as ready for review March 24, 2021 19:41
@postamar postamar requested a review from a team as a code owner March 24, 2021 19:41
@postamar postamar force-pushed the add-validation-telemetry branch 2 times, most recently from da8a8a0 to 3245ca9 Compare March 24, 2021 23:49
@postamar postamar requested a review from a team March 24, 2021 23:50
Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 12 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @postamar)


pkg/sql/testdata/telemetry/error, line 70 at r1 (raw file):

errorcodes.22012

# Descriptor validation failure on transaction commit.

any interest in exercising the other telemetry counters you introduced?

This commit adds `sql.schema.validation_errors.*` telemetry keys to
descriptor validation errors.

Fixes cockroachdb#61786.

Release note: None
@postamar postamar force-pushed the add-validation-telemetry branch from 3245ca9 to edcf5a8 Compare March 30, 2021 20:03
Copy link
Contributor Author

@postamar postamar 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! 0 of 0 LGTMs obtained (waiting on @ajwerner)


pkg/sql/testdata/telemetry/error, line 70 at r1 (raw file):

Previously, ajwerner wrote…

any interest in exercising the other telemetry counters you introduced?

I've added a couple of read counter test cases. To be honest I was struggling in crafting the test cases within the confines of these logic tests. Although, that's rather a good thing, isn't it?

Copy link
Contributor

@ajwerner ajwerner 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 12 files at r1, 1 of 1 files at r2.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @postamar)


pkg/sql/testdata/telemetry/error, line 70 at r1 (raw file):

Previously, postamar (Marius Posta) wrote…

I've added a couple of read counter test cases. To be honest I was struggling in crafting the test cases within the confines of these logic tests. Although, that's rather a good thing, isn't it?

the unsafe injection with the force flag is a nice big hammer. This works.

@postamar
Copy link
Contributor Author

Thanks for the review!

bors r+

@postamar
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Mar 31, 2021

Already running a review

@craig
Copy link
Contributor

craig bot commented Mar 31, 2021

Build succeeded:

@craig craig bot merged commit a49cd0a into cockroachdb:master Mar 31, 2021
@postamar postamar deleted the add-validation-telemetry branch March 31, 2021 15:33
@rafiss rafiss added this to the 21.1 milestone Apr 22, 2021
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.

sql: Add telemetry counter when descriptor corruption error is encountered
4 participants