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

ui: fix transaction contention details query where clause #111867

Merged
merged 1 commit into from Oct 5, 2023

Conversation

xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Oct 5, 2023

Change a >= to = in a where clause creation for txn details. The query where clause creation contained a bug where when filtering for a particular waiting_txn_id, we specify >= the id rather than strictly equals. This can lead to surfacing contention events for not just the txn id specified.

Epic: none

Release note (bug fix): In txn insight details, we will only surface contention details for the current txn and no others. Previously it was possible to see the contention details of other txns due to a bug.

Change a `>=` to `=` in a where clause creation for txn details.
The query where clause creation contained a bug where when filtering
for a particular `waiting_txn_id`, we specify `>=` the id rather than
strictly equals. This can lead to surfacing contention events for not
just the txn id specified.

Epic: none

Release note (bug fix): In txn insight details, we will only surface
contention details for the current txn and no others. Previously it
was possible to see the contention details of other txns due to a bug.
@xinhaoz xinhaoz requested a review from a team as a code owner October 5, 2023 20:52
@xinhaoz xinhaoz requested a review from a team October 5, 2023 20:52
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@maryliag maryliag 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 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @xinhaoz)

@xinhaoz xinhaoz added the backport-23.1.x Flags PRs that need to be backported to 23.1 label Oct 5, 2023
@xinhaoz
Copy link
Member Author

xinhaoz commented Oct 5, 2023

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 5, 2023

Build succeeded:

@craig craig bot merged commit bc191fd into cockroachdb:master Oct 5, 2023
8 checks passed
@xinhaoz xinhaoz deleted the fix-txn-details-query branch April 1, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants