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

fix(csi-controller/pv-watcher): race between creation and gc #768

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

tiagolobocastro
Copy link
Contributor

@tiagolobocastro tiagolobocastro commented Mar 1, 2024

Check for deletion candidates using PVC and when such candidate is found
also ensure there is no corresponding PV.
This is required to avoid a race during creation where the volume is created
but the PV is not yet.
Also, do this check twice, as otherwise we might find false positives when
a PVC is deleted before the PV is sucessfully created, leading to confusing
message about GC.

Check for deletion candidates using PVC and when such candidate is found
also ensure there is no corresponding PV.
This is required to avoid a race during creation where the volume is created
but the PV is not yet.
Also, do this check twice, as otherwise we might find false positives when
a PVC is deleted before the PV is sucessfully created, leading to confusing
message about GC.

Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
@tiagolobocastro tiagolobocastro force-pushed the vol-orphan branch 2 times, most recently from 4a4b79f to c307925 Compare March 5, 2024 14:56
@tiagolobocastro
Copy link
Contributor Author

bors merge

@bors-openebs-mayastor
Copy link

Build succeeded:

@bors-openebs-mayastor bors-openebs-mayastor bot merged commit 03dc8cc into develop Mar 5, 2024
4 checks passed
@bors-openebs-mayastor bors-openebs-mayastor bot deleted the vol-orphan branch March 5, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants