Skip to content

sql,sqlbase: finish the migration to use MVCC timestamps with table descriptors#42655

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/finish-migrating-creation-time-and-modification-time-to-mvcc-timestamps-take-2
Jul 1, 2020
Merged

sql,sqlbase: finish the migration to use MVCC timestamps with table descriptors#42655
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/finish-migrating-creation-time-and-modification-time-to-mvcc-timestamps-take-2

Conversation

@ajwerner
Copy link
Copy Markdown
Contributor

In #40581 we changed the protocol for creating and updating table descriptors
to no longer serialize the hlc timestamp at which the descriptor was created
or modified directly into the value but rather to infer it from the MVCC
timestamp of the row. For backwards compatibility we left a migration in
place. This commit finishes the migration.

Release note: None.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@ajwerner
Copy link
Copy Markdown
Contributor Author

ajwerner commented Dec 4, 2019

@dt I looked at stripping timestamps from the helper functions which construct table descriptors and hit some snags touching some restore code. Are you cool with this less involved change?

cc @lucy-zhang

@ajwerner ajwerner requested a review from thoszhang December 16, 2019 15:08
@dt
Copy link
Copy Markdown
Contributor

dt commented Dec 17, 2019

@dt ... Are you cool with this less involved change?

I'm not really keeping up with tabledesc mgmt anymore so I'm going to leave this up to Lucy and sql folk.

Copy link
Copy Markdown

@thoszhang thoszhang left a comment

Choose a reason for hiding this comment

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

Sorry for the delay.

Reviewed 5 of 5 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@ajwerner
Copy link
Copy Markdown
Contributor Author

TFTR!

bors r=lucy-zhang

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 29, 2020

Build failed (retrying...)

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 29, 2020

Build failed

@ajwerner ajwerner force-pushed the ajwerner/finish-migrating-creation-time-and-modification-time-to-mvcc-timestamps-take-2 branch from d20f78b to 6da9b77 Compare January 30, 2020 21:20
…escriptors

In cockroachdb#40581 we changed the protocol for creating and updating table descriptors
to no longer serialize the hlc timestamp at which the descriptor was created
or modified directly into the value but rather to infer it from the MVCC
timestamp of the row. For backwards compatibility we left a migration in
place. This commit finishes the migration.

Release note: None.
@ajwerner ajwerner force-pushed the ajwerner/finish-migrating-creation-time-and-modification-time-to-mvcc-timestamps-take-2 branch from 6da9b77 to 4b56a6a Compare July 1, 2020 16:44
@ajwerner
Copy link
Copy Markdown
Contributor Author

ajwerner commented Jul 1, 2020

bors r+

for real this time, cannot believe this has sat since January

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 1, 2020

Already running a review

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 1, 2020

Build succeeded

@craig craig bot merged commit c016727 into cockroachdb:master Jul 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.

4 participants