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

kv: add debug information to track down #77663 #82151

Merged
merged 1 commit into from
Jul 6, 2022

Conversation

nvanbenschoten
Copy link
Member

I've given #77663 a few looks and have yet to understand how it is
possible to hit that assertion. To continue making progress, this commit
adds additional debug information to the assertion so that we'll be able
to understand this better if it happens again.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

log.Event(ctx, "optimistically sequencing request")
case PessimisticAfterFailedOptimisticEval:
branch = 3
Copy link
Contributor

Choose a reason for hiding this comment

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

these branches will not fire given the panic underneath, right?

maybe you want a defer that wraps the branch number around the panic object?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, they won't fire, so this is intentionally dead code. I removed it.

I've given cockroachdb#77663 a few looks and have yet to understand how it is
possible to hit that assertion. To continue making progress, this commit
adds additional debug information to the assertion so that we'll be able
to understand this better if it happens again.
@nvanbenschoten nvanbenschoten force-pushed the nvanbenschoten/debug77663 branch from 4ee56ed to 8e6b85b Compare July 5, 2022 21:12
@nvanbenschoten
Copy link
Member Author

TFTR!

bors r=irfansharif

@craig
Copy link
Contributor

craig bot commented Jul 5, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jul 6, 2022

Build succeeded:

@craig craig bot merged commit 33d7099 into cockroachdb:master Jul 6, 2022
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/debug77663 branch July 12, 2022 16:44
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.

4 participants