Skip to content

sql: stop observing the commit timestamp in TRUNCATE#44091

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/stop-observing-commit-timestamp-in-truncate
Mar 1, 2020
Merged

sql: stop observing the commit timestamp in TRUNCATE#44091
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/stop-observing-commit-timestamp-in-truncate

Conversation

@ajwerner
Copy link
Copy Markdown
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.

@ajwerner ajwerner requested a review from nvb January 16, 2020 21:52
@cockroach-teamcity
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

TFTR!

bors r=nvanbenschoten

@craig
Copy link
Copy Markdown
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