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/cluster-ui: filter out closed sessions from active exec pages #83896

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Jul 6, 2022

Previously, it was possible for the active transactions page
to show txns from closed sessions. The sessions API was
recently updated to return closed sessions, and it is
possible for the active_txn field in a closed session to be
populated. This commit filters out the closed sessions when
retrieving active transactions.

Release note (bug fix): active transactions page no longer
shows transactions from closed sessions

@xinhaoz xinhaoz requested a review from a team July 6, 2022 15:16
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@xinhaoz xinhaoz force-pushed the active-txns-filtering-fix branch from 247907f to fc0848c Compare July 6, 2022 15:34
Previously, it was possible for the active transactions page
to show txns from closed sessions. The sessions API was
recently updated to return closed sessions, and it is
possible for the active_txn field in a closed session to be
populated. This commit filters  out the closed sessions when
retrieving active transactions.

Release note (bug fix): active transactions page no longer
shows transactions from closed sessions
@xinhaoz xinhaoz force-pushed the active-txns-filtering-fix branch from fc0848c to c3c1541 Compare July 6, 2022 15:44
@xinhaoz xinhaoz changed the title ui/cluster-ui: filter out txns from closed sessions ui/cluster-ui: filter out closed sessions from active exec pages Jul 6, 2022
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 3 of 4 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @xinhaoz)

@xinhaoz
Copy link
Member Author

xinhaoz commented Jul 7, 2022

TFTR!
bors r+

@craig
Copy link
Contributor

craig bot commented Jul 7, 2022

Build succeeded:

@craig craig bot merged commit 4dfbe65 into cockroachdb:master Jul 7, 2022
@xinhaoz xinhaoz deleted the active-txns-filtering-fix branch July 7, 2022 18:37
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.

3 participants