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

release-21.1: storage: report all encountered intents in sst export error #64881

Merged
merged 1 commit into from
May 13, 2021

Conversation

aliher1911
Copy link
Contributor

Backport 1/1 commits from #64131.

/cc @cockroachdb/release


Previously, pebbleExportToSst was stopping upon encountering first
intent.

This was causing backups to be very slow if lots of intents build up.
To be able to proceed with export, intent needs to be resolved and
export retried. The result of this behaviour is that export would run
as many times as there were intents in the table before succeeding.

To address this, all intents from the range are collected and reported
in WriteIntentError. They could be resolved efficiently as batch
similar to how GC operates.

Fixes #59704

Release note (bug fix): Backup no longer resolves intents one by one.
This eliminates running a high pri query to cleanup intents to unblock
backup in case of intent buildup.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@aliher1911 aliher1911 force-pushed the backport21.1-64131 branch from 0860a76 to f338e9a Compare May 7, 2021 15:53
Previously, pebbleExportToSst was stopping upon encountering first
intent.

This was causing backups to be very slow if lots of intents build up.
To be able to proceed with export, intent needs to be resolved and
export retried. The result of this behaviour is that export would run
as many times as there were intents in the table before succeeding.

To address this, all intents from the range are collected and reported
in WriteIntentError. They could be resolved efficiently as batch
similar to how GC operates.

Release note (bug fix): Backup no longer resolves intents one by one.
This eliminates running a high pri query to cleanup intents to unblock
backup in case of intent buildup.
@aliher1911 aliher1911 force-pushed the backport21.1-64131 branch from f338e9a to 1834ce0 Compare May 7, 2021 16:11
@aliher1911 aliher1911 requested a review from nvanbenschoten May 7, 2021 17:19
@aliher1911 aliher1911 marked this pull request as ready for review May 7, 2021 17:19
@aliher1911 aliher1911 requested review from a team and adityamaru and removed request for a team May 7, 2021 17:19
Copy link
Member

@nvanbenschoten nvanbenschoten left a comment

Choose a reason for hiding this comment

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

LGTM! But we'll want to hold off on merging this until backports open up for v21.1.1, which will be sometime in the next few weeks.

@aliher1911 aliher1911 merged commit 05dad9e into cockroachdb:release-21.1 May 13, 2021
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