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
release-23.1: sql: fix activity update job missing stmts #109479
Conversation
Problem: The UI was missing query text and details when looking at SQL activity transaction page when there was more than 500 statments or transactions. This is because the activity update job only included the top N statements for each table. It is possible that a transaction is in the top list but none of it's individual statements are. Solution: The activity update job now includes all statements for a transaction that is in the transaction_acitivity table. This was done by adding another query after the initial update to add any missing statements. Fixes: #109200 Release note (sql change): Fixes issue where the UI was missing query text and details when looking at SQL activity transaction page if there was more than 500 transaction or statements. The statement_activity table now includes all statements for a transaction that are in the transaction_activity table.
d850c07
to
4b14133
Compare
abf305f
to
bbcf4f4
Compare
Thanks for opening a backport. Please check the backport criteria before merging:
If some of the basic criteria cannot be satisfied, ensure that the exceptional criteria are satisfied within.
Add a brief release justification to the body of your PR to justify this backport. Some other things to consider:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @cucaroach, @gtr, and @mgartner)
Backport 1/1 commits from #109424 on behalf of @j82w.
/cc @cockroachdb/release
Problem:
The UI was missing query text and details when looking at SQL activity transaction page when there was more than 500 statments or transactions. This is because the activity update job only included the top N statements for each table. It is possible that a transaction is in the top list but none of it's individual statements are.
Solution:
The activity update job now includes all statements for a transaction that is in the transaction_acitivity table. This was done by adding another query after the initial update to add any missing statements.
Fixes: #109200
Release note (sql change): Fixes issue where the UI was missing query text and details when looking at SQL activity transaction page if there was more than 500 transaction or statements. The statement_activity table now includes all statements for a transaction that are in the transaction_activity table.
Release justification: bug fix