Skip to content

Fix sentinel issue if replica changes IP#11590

Merged
yossigo merged 1 commit intoredis:unstablefrom
moticless:fix-sentinel-dynamic-ip
Dec 8, 2022
Merged

Fix sentinel issue if replica changes IP#11590
yossigo merged 1 commit intoredis:unstablefrom
moticless:fix-sentinel-dynamic-ip

Conversation

@moticless
Copy link
Collaborator

As Sentinel support dynamic IP only when using hostnames, there
are few leftover addess comparison logic that doesn't take into
account that the IP might get change.

I did a limited fix in the past to same issue on another location but
was too lazy or wasn't sure to fully review the code for othe places.
Hope it will cover entirely this time.

Fixes issue: #9998 (read from here).

@moticless moticless requested a review from yossigo December 6, 2022 12:26
@yossigo yossigo changed the title Fix sentinel issue if slave change IP Fix sentinel issue if replica changes IP Dec 8, 2022
@yossigo yossigo added the release-notes indication that this issue needs to be mentioned in the release notes label Dec 8, 2022
@yossigo yossigo merged commit 4a27aa4 into redis:unstable Dec 8, 2022
This was referenced Jan 16, 2023
oranagra pushed a commit that referenced this pull request Jan 16, 2023
As Sentinel supports dynamic IP only when using hostnames, there
are few leftover addess comparison logic that doesn't take into
account that the IP might get change.

Co-authored-by: moticless <[email protected]>
(cherry picked from commit 4a27aa4)
oranagra pushed a commit that referenced this pull request Jan 16, 2023
As Sentinel supports dynamic IP only when using hostnames, there
are few leftover addess comparison logic that doesn't take into
account that the IP might get change.

Co-authored-by: moticless <[email protected]>
(cherry picked from commit 4a27aa4)
madolson pushed a commit to madolson/redis that referenced this pull request Apr 19, 2023
As Sentinel supports dynamic IP only when using hostnames, there
are few leftover addess comparison logic that doesn't take into
account that the IP might get change.

Co-authored-by: moticless <[email protected]>
enjoy-binbin pushed a commit to enjoy-binbin/redis that referenced this pull request Jul 31, 2023
As Sentinel supports dynamic IP only when using hostnames, there
are few leftover addess comparison logic that doesn't take into
account that the IP might get change.

Co-authored-by: moticless <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes indication that this issue needs to be mentioned in the release notes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants