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

storage: Txn GC check uses wrong txn #9522

Closed
bdarnell opened this issue Sep 24, 2016 · 2 comments
Closed

storage: Txn GC check uses wrong txn #9522

bdarnell opened this issue Sep 24, 2016 · 2 comments
Labels
S-1-stability Severe stability issues that can be fixed by upgrading, but usually don’t resolve by restarting

Comments

@bdarnell
Copy link
Contributor

The recently-added check to ensure that we don't recreate a transaction that is old enough to be GC'd uses the wrong transaction (txn is used to read the existing txn record from disk, and here it is definitely empty because we handled existing txns in the preceding switch statement. Because it is empty, its timestamps are zero, always less than the GC cutoff. It should be looking at the request transaction, or the copy cloned into reply.Txn instead).

This means that after a transaction GC has occurred, no more transactions can be executed on this range. This is the cause of the current lack of progress with the photos app, and suggests a significant gap in our test coverage.

@cockroachdb/stability

@bdarnell bdarnell added the S-1-stability Severe stability issues that can be fixed by upgrading, but usually don’t resolve by restarting label Sep 24, 2016
@tbg
Copy link
Member

tbg commented Sep 24, 2016

Yikes. Will clean up after myself.

@tbg
Copy link
Member

tbg commented Sep 26, 2016

Fixed in #9524.

@tbg tbg closed this as completed Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-1-stability Severe stability issues that can be fixed by upgrading, but usually don’t resolve by restarting
Projects
None yet
Development

No branches or pull requests

2 participants