-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: capture index usage statistics bug with database names containing hyphen character #85577
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Comments
THardy98
added
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-observability
labels
Aug 3, 2022
THardy98
changed the title
sql: capture index usage statistics bug with database names containing
sql: capture index usage statistics bug with database names containing a hyphen Aug 3, 2022
-
-
THardy98
changed the title
sql: capture index usage statistics bug with database names containing a hyphen
sql: capture index usage statistics bug with database names containing Aug 3, 2022
-
-
(hyphen character)
THardy98
changed the title
sql: capture index usage statistics bug with database names containing
sql: capture index usage statistics bug with database names containing Aug 3, 2022
-
(hyphen character)-
THardy98
changed the title
sql: capture index usage statistics bug with database names containing
sql: capture index usage statistics bug with database names containing hyphen character
Aug 3, 2022
-
xinhaoz
added a commit
to xinhaoz/cockroach
that referenced
this issue
Sep 7, 2022
Fixes cockroachdb#85577 This commit fixes a bug where the query constructed during index usage stats recording failed for db names containing a hyphen. The db name placeholder is now wrapped in double quotes so the db name can be recognized in the query. Release justification: bug fix Release note (bug fix): index usage stats are properly captured for database names with hyphens
xinhaoz
added a commit
to xinhaoz/cockroach
that referenced
this issue
Sep 8, 2022
Fixes cockroachdb#85577 This commit fixes a bug where the query constructed during index usage stats recording failed for db names containing a hyphen. The db name placeholder is now wrapped in double quotes so the db name can be recognized in the query. Release justification: bug fix Release note (bug fix): index usage stats are properly captured for database names with hyphens
xinhaoz
added a commit
to xinhaoz/cockroach
that referenced
this issue
Sep 8, 2022
Fixes cockroachdb#85577 This commit fixes a bug where the query constructed during index usage stats recording failed for db names containing a hyphen. The db name placeholder is now wrapped in double quotes so the db name can be recognized in the query. Release justification: bug fix Release note (bug fix): index usage stats are properly captured for database names with hyphens
craig bot
pushed a commit
that referenced
this issue
Sep 9, 2022
87525: sql: fix recording db names with hyphen for idx usage stats r=xinhaoz a=xinhaoz Fixes #85577 This commit fixes a bug where the query constructed during index usage stats recording failed for db names containing a hyphen. The db name placeholder is now converted to string from the `tree.Name`, which should properly escape hyphen characters for the query. Release justification: bug fix Release note (bug fix): index usage stats are properly captured for database names with hyphens 87706: descs: fix txn commit waiting on wrong lease version r=postamar a=postamar Recent work on the descs.Collection (PR #87067) introduced a regression in which it would return bad lease.IDVersion versions for the uncommitted descriptors. Fixes #87672. Release justification: important bug fix Release note: None Co-authored-by: Xin Hao Zhang <[email protected]> Co-authored-by: Marius Posta <[email protected]>
THardy98
pushed a commit
to THardy98/cockroach
that referenced
this issue
Sep 29, 2022
Fixes cockroachdb#85577 This commit fixes a bug where the query constructed during index usage stats recording failed for db names containing a hyphen. The db name placeholder is now converted to string from the `tree.Name`, which should properly escape hyphen characters for the query. Release justification: bug fix Release note (bug fix): index usage stats are properly captured for database names with hyphens
THardy98
pushed a commit
to THardy98/cockroach
that referenced
this issue
Sep 29, 2022
Fixes cockroachdb#85577 This commit fixes a bug where the query constructed during index usage stats recording failed for db names containing a hyphen. The db name placeholder is now converted to string from the `tree.Name`, which should properly escape hyphen characters for the query. Release justification: bug fix Release note (bug fix): index usage stats are properly captured for database names with hyphens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Describe the problem
The placeholder string query used when capturing index usage statistics for telemetry is unable to parse database names that contain a hyphen character.
Stack Trace
Erroneous Query in Question
Location of Code Change
cockroach/pkg/sql/scheduledlogging/captured_index_usage_stats.go
Line 192 in 9650b0d
The placeholder string value needs double-quotes surrounding the database name placeholder.
To Reproduce
Run the query with any database name that contains a hyphen.
Expected behavior
Should be able to handle database names that contain a hyphen.
Jira issue: CRDB-18321
The text was updated successfully, but these errors were encountered: