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

raft: cleanup wal directory if creation fails #10689

Merged
merged 3 commits into from
May 10, 2019
Merged

Commits on May 4, 2019

  1. wal: cleanup wal directory if creation fails

    delete <data-dir>/member/wal if any operation after the rename in
    wal.Create fails to avoid reading an inconsistent WAL on restart.
    
    Fixes etcd-io#10688
    Joshua Coutinho authored and joshcc3 committed May 4, 2019
    Configuration menu
    Copy the full SHA
    51035bf View commit details
    Browse the repository at this point in the history

Commits on May 7, 2019

  1. wal: Improve cleanup for robustness and debuggability

    Rename wal with '.suffix.<timestamp>' instead of delete it and call cleanup when perr in a 'defer'ed statement.
    jcoutin authored and joshcc3 committed May 7, 2019
    Configuration menu
    Copy the full SHA
    f7f7e9c View commit details
    Browse the repository at this point in the history

Commits on May 10, 2019

  1. wal: add a test for wal cleanup, improve comments

    To add test coverage of wal cleanup.
    joshcc3 committed May 10, 2019
    Configuration menu
    Copy the full SHA
    a0c889d View commit details
    Browse the repository at this point in the history