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

sql: record transaction idle time during rollback #142136

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

mw5h
Copy link
Contributor

@mw5h mw5h commented Feb 28, 2025

Transaction idle time is recorded when we execute the next statement, including COMMIT. The ROLLBACK path was not doing so, this fixes that.

Epic: none
Release note: none

Copy link

blathers-crl bot commented Feb 28, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@mw5h mw5h requested review from a team and mgartner and removed request for a team February 28, 2025 17:11
Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

Nice find! :lgtm:

Might be nice to add a test case in TestSQLStatsIdleLatencies.

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @mgartner)

Transaction idle time is recorded when we execute the next statement,
including COMMIT. The ROLLBACK path was not doing so, this fixes that.

Epic: none
Release note: none
@mw5h mw5h force-pushed the rollback_idle_time branch from 2608d5c to 67648f8 Compare February 28, 2025 18:17
@mw5h mw5h requested a review from a team as a code owner February 28, 2025 18:17
@mw5h mw5h requested review from dhartunian and removed request for a team February 28, 2025 18:17
@mw5h
Copy link
Contributor Author

mw5h commented Feb 28, 2025

bors r+

@craig craig bot merged commit 37d55e1 into cockroachdb:master Feb 28, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants