Skip to content

backupccl: fix bug due to transaction restart while publishing descri…#54748

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/fix-error-due-to-restart
Sep 24, 2020
Merged

backupccl: fix bug due to transaction restart while publishing descri…#54748
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/fix-error-due-to-restart

Conversation

@ajwerner
Copy link
Copy Markdown
Contributor

…ptors

Before this patch, if a restart occurred while trying to publish descriptors,
we would short-circuit publishing the descriptors on the subsequent attempt.

The approach was validated by stressing TestBackupRestoreResume with the
patch in #54695 which previously
reproduced the failure immediately.

Release note (bug fix): Fixed a bug whereby a transaction restart at the
wrong moment during a restore could leave descriptors offline after the
restore completed successfully.

…ptors

Before this patch, if a restart occurred while trying to publish descriptors,
we would short-circuit publishing the descriptors on the subsequent attempt.

The approach was validated by stressing `TestBackupRestoreResume` with the
patch in cockroachdb#54695 which previously
reproduced the failure immediately.

Release note (bug fix): Fixed a bug whereby a transaction restart at the
wrong moment during a restore could leave descriptors offline after the
restore completed successfully.
@ajwerner ajwerner requested review from a team and adityamaru and removed request for a team September 24, 2020 13:56
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@ajwerner ajwerner requested a review from thoszhang September 24, 2020 13:57
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.

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @adityamaru)

@ajwerner
Copy link
Copy Markdown
Contributor Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Sep 24, 2020

Build succeeded:

@pbardea
Copy link
Copy Markdown
Contributor

pbardea commented Sep 29, 2020

Just catching up on this, does this need a backport into 20.2?

@ajwerner
Copy link
Copy Markdown
Contributor Author

Just catching up on this, does this need a backport into 20.2?

Yes indeed. We could potentially go further back too.

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.

6 participants