rbd: Fix connection leak when a non-nil volume is returned (backport #6432) - #6440
Conversation
This patch calls `Destroy` on the non-nil Volume/Snap object so that conn pool GC can clean it up. Not doing this always kept ref count > 0, preventing cleanup and leading to lock contention, which in turn kicked in librbd lock breaking leading to blacklisting of actual clients. Signed-off-by: Niraj Yadav <niryadav@redhat.com> (cherry picked from commit 7ef770a)
Signed-off-by: Niraj Yadav <niryadav@redhat.com> (cherry picked from commit 6148377)
|
/test ci/centos/k8s-e2e-external-storage/1.33 |
|
/test ci/centos/k8s-e2e-external-storage/1.34 |
|
/test ci/centos/k8s-e2e-external-storage/1.35 |
|
/test ci/centos/mini-e2e-helm/k8s-1.33 |
|
/test ci/centos/mini-e2e-helm/k8s-1.34 |
|
/test ci/centos/mini-e2e-helm/k8s-1.35 |
|
/test ci/centos/mini-e2e/k8s-1.33 |
|
/test ci/centos/mini-e2e/k8s-1.34 |
|
/test ci/centos/mini-e2e/k8s-1.35 |
|
/test ci/centos/upgrade-tests-cephfs |
|
/test ci/centos/upgrade-tests-rbd |
|
/retest ci/centos/mini-e2e/k8s-1.35 |
|
/retest ci/centos/mini-e2e/k8s-1.34 |
|
/retest ci/centos/k8s-e2e-external-storage/1.34 |
|
Restarted the CI jobs, they failed to checkout the repository from GitHub. |
|
/retest ci/centos/mini-e2e/k8s-1.35 |
|
|
@Mergifyio refresh |
Merge Queue Status
This pull request spent 24 seconds in the queue, including 4 seconds running CI. Required conditions to merge
|
✅ Pull request refreshed |
Describe what this PR does
This patch calls
Destroyon the non-nil Volume/Snap object so that conn pool GC can clean it up.Not doing this always kept ref count > 0, preventing cleanup and leading to lock contention, which in turn kicked in librbd lock breaking leading to blacklisting of actual clients.
This is an automatic backport of pull request #6432 done by [Mergify](https://mergify.com).