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

Add a global option --retry-lock #4107

Merged
merged 3 commits into from
Apr 11, 2023

Commits on Apr 7, 2023

  1. Add a global option --retry-lock

    Fixes restic#719
    
    If the option is passed, restic will wait the specified duration of time
    and retry locking the repo every 10 seconds (or more often if the total
    timeout is relatively small).
    
    - Play nice with json output
    - Reduce wait time in lock tests
    - Rework timeout last attempt
    - Reduce test wait time to 0.1s
    - Use exponential back off for the retry lock
    - Don't pass gopts to lockRepo functions
    - Use global variable for retry sleep setup
    - Exit retry lock on cancel
    - Better wording for flag help
    - Reorder debug statement
    - Refactor tests
    - Lower max sleep time to 1m
    - Test that we cancel/timeout in time
    - Use non blocking sleep function
    - Refactor into minDuration func
    
    Co-authored-by: Julian Brost <julian@0x4a42.net>
    jooola and julianbrost committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    ea59896 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8ce5f29 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1f43003 View commit details
    Browse the repository at this point in the history