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

fix(tsm1): "snapshot in progress" error during backup: restore loop with backoff #20063

Merged
merged 2 commits into from
Nov 17, 2020

Conversation

davidby-influx
Copy link
Contributor

@davidby-influx davidby-influx commented Nov 17, 2020

WIP

Loop with backoff in (*Engine).CreateSnapshot() to retry (*Engine).WriteSnapshot() up to 3 times if ErrSnapshotInPrgress is returned. Then continue on no error or on SnapshotInProgress if skipCacheOk is true.

-- [X] Well-formatted commit messages

  • Rebased/mergeable
  • Tests pass

Loop with backoff in (*Engine).CreateSnapshot() to retry
(*Engine).WriteSnapshot() up to 3 times if
ErrSnapshotInPrgress is returned.  Then continue
on no error or on SnapshotInProgress if skipCacheOk is
true.

influxdata/plutonium#3227
(cherry picked from commit dfa6aa8)
Failed to format code before commit.
@davidby-influx davidby-influx merged commit af00cb7 into master-1.x Nov 17, 2020
@davidby-influx davidby-influx deleted the DSB_SnapshotInProgress_master-1.x branch November 19, 2020 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants