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-3.5] testing: fix TestOpenWithMaxIndex cleanup #14440

Commits on Sep 8, 2022

  1. testing: fix TestOpenWithMaxIndex cleanup

    A WAL object was closed by defer, however the WAL was rewritten afterwards,
    so defer closed already closed WAL but not the new one. It caused a data
    race between writing file and cleaning up a temporary test directory,
    which led to a non-deterministic bug.
    
    Fixes etcd-io#14332
    
    Signed-off-by: Vladimir Sokolov <vsvastey@gmail.com>
    vsvastey authored and Vladimir Sokolov committed Sep 8, 2022
    Copy the full SHA
    eef5e22 View commit details
    Browse the repository at this point in the history