Skip to content

fix: Fixed potential deadlock from unexpected __del__ call#3654

Merged
vladvildanov merged 1 commit into
masterfrom
vv-deadlock-fix
May 26, 2025
Merged

fix: Fixed potential deadlock from unexpected __del__ call#3654
vladvildanov merged 1 commit into
masterfrom
vv-deadlock-fix

Conversation

@vladvildanov

@vladvildanov vladvildanov commented May 23, 2025

Copy link
Copy Markdown
Collaborator

Pull Request check-list

Please make sure to review and check all of these items:

  • Do tests and lints pass with this change?
  • Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Is there an example added to the examples folder (if applicable)?
  • Was the change added to CHANGES file?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.

Description of change

Fixes potential deadlock when GC takes action and __del__ invoked in the middle of get_connection() or release() methods. ClusterPipeline object releases connection on __del__ method which leads to a deadlock.

This PR introduces only non-breaking changing fixes, the follow up PR with backward incompatible fixes will be released as a part of next major release

Closes #3289

@petyaslavova petyaslavova left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible deadlock in class Pipeline

2 participants