Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cleanup.py): protect LinstorSR init against race condition (#79)
During `LinstorSR` init, only create the journaler to make `should_preempt` happy. The volume manager MUST always be created in a SR lock context. Otherwise, we can trigger major issues. For example, a volume can be deleted from the KV-store by `cleanup.py` during a snapshot rollback. Very rare situation but which allowed this problem to be discovered. Signed-off-by: Ronan Abhamon <[email protected]>
- Loading branch information