8000 fix(conn): Removed automatic conn_uid assignment by vladvildanov · Pull Request #1551 · predis/predis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(conn): Removed automatic conn_uid assignment #1551

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

Merged
merged 5 commits into from
Jun 5, 2025

Conversation

vladvildanov
Copy link
Contributor
@vladvildanov vladvildanov commented Jun 4, 2025

Closes #1539

Automatic conn_uid assignment was added as a part of #1512, but it leads to a connection spikes in case if failover happens and connections is recreated by client. Since, conn_uid is a parameter option it must be assigned by user instead to avoid sharing of the socket between different clients within a single process.

@coveralls
Copy link
coveralls commented Jun 4, 2025

Coverage Status

coverage: 88.832% (-0.002%) from 88.834%
when pulling f1555b1 on vv-incising-connections-fix
into 5142011 on v2.x.

@vladvildanov
Copy link
Contributor Author

@tillkruss The general code coverage was slightly decreased because a line of code was removed

@vladvildanov vladvildanov requested a review from htemelski June 4, 2025 13:09
Copy link
Member
@tillkruss tillkruss left a comment

Choose a reason for hiding this comment

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

Do we need to port this to v3.x?

@vladvildanov
Copy link
Contributor Author

@tillkruss Absolutely, I will take care of this

@vladvildanov vladvildanov merged commit 07dc6ba into v2.x Jun 5, 2025
28 of 29 checks passed
@vladvildanov vladvildanov deleted the vv-incising-connections-fix branch June 5, 2025 06:54
vladvildanov added a commit that referenced this pull request Jun 5, 2025
* fix(conn): Removed automatic conn_uid assignment

* Restrict redis version

* Updated CHANGELOG.md

* Added test case

* Update CHANGELOG.md

---------

Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
@vladvildanov vladvildanov mentioned this pull request Jun 5, 2025
vladvildanov added a commit that referenced this pull request Jun 5, 2025
* fix(conn): Removed automatic conn_uid assignment (#1551)

* fix(conn): Removed automatic conn_uid assignment

* Restrict redis version

* Updated CHANGELOG.md

* Added test case

* Update CHANGELOG.md

---------

Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>

* Removed duplicated disconnect

* Updated CHANGELOg.md

---------

Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

4 participants
0