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: stop observing the commit timestamp in TRUNCATE #44091

Conversation

ajwerner
Copy link
Contributor

In #42650 I had intended to remove all places where the commit timestamp was
observed in TRUNCATE. I missed this case. Modification times for the first
write to table descriptors as of 19.2 should be the zero value (or the commit
timestamp, so this isn't wrong). This observance of the commit timestamp
prevents transactions which TRUNCATE tables from being pushed. Combined
with #44090 we'll have removed all non-user observation of commit timestamps.

Release note (bug fix): Long running transactions which attempt to TRUNCATE
can now be pushed and will commit in cases where they previously could fail
or retry forever.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@ajwerner ajwerner force-pushed the ajwerner/stop-observing-commit-timestamp-in-truncate branch from 773190f to ed46104 Compare January 28, 2020 14:23
In cockroachdb#42650 I had intended to remove all places where the commit timestamp was
observed in TRUNCATE. I missed this case. Modification times for the first
write to table descriptors as of 19.2 should be the zero value (or the commit
timestamp, so this isn't wrong). This observance of the commit timestamp
prevents transactions which TRUNCATE tables from being pushed. Combined
with cockroachdb#44090 we'll have removed all non-user observation of commit timestamps.

Release note (bug fix): Long running transactions which attempt to TRUNCATE
can now be pushed and will commit in cases where they previously could fail
or retry forever.
@ajwerner ajwerner force-pushed the ajwerner/stop-observing-commit-timestamp-in-truncate branch from ed46104 to a837af9 Compare February 29, 2020 22:15
@ajwerner
Copy link
Contributor Author

TFTR!

bors r=nvanbenschoten

@craig
Copy link
Contributor

craig bot commented Mar 1, 2020

Build succeeded

@craig craig bot merged commit 14094e3 into cockroachdb:master Mar 1, 2020
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