-
Notifications
You must be signed in to change notification settings - Fork 38
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(reconciler/volume): disown replica from disowned volumes nexus #922
Conversation
control-plane/agents/src/bin/core/controller/reconciler/volume/garbage_collector.rs
Outdated
Show resolved
Hide resolved
control-plane/agents/src/bin/core/controller/reconciler/volume/garbage_collector.rs
Outdated
Show resolved
Hide resolved
87ad9d3
to
5c0e474
Compare
While we disown a replica from volume we used to validate if the replica is owned by any nexus. In some cases involving Outage on volume target node we observed that the new nexus do get created after the volumeattachments are deleted from the node. however, we werent able to disown the unknown replica from volume since it was still owned by old target. Now we check if replica is owned by any of the current target of the volume rather then if it is owned by any target. Signed-off-by: Abhilash Shetty <[email protected]>
5c0e474
to
26875cb
Compare
control-plane/agents/src/bin/core/controller/reconciler/volume/garbage_collector.rs
Show resolved
Hide resolved
control-plane/agents/src/bin/core/controller/reconciler/volume/garbage_collector.rs
Show resolved
Hide resolved
@dsharma-dc , Before the So we will receive only new nexus when we call from We can improve on docs i suppose. Its kind of race condition. Suppose we create new nexus and its published to the volume and reconciler already ran We have PR on develop. I will see how we can change docs in that. |
bors merge |
Build succeeded: |
While we disown a replica from volume we used to validate if the replica is owned by any nexus. In some cases involving Outage on volume target node we observed that the new nexus do get created after the volumeattachments are deleted from the node. However, we werent able to disown the Unknown replica from volume since it was still owned by old target.
Now we check if replica is owned by the current target of the volume rather then if it is owned by any target.