-
Notifications
You must be signed in to change notification settings - Fork 987
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Make replica's
REPLCONF IP-ADDRESS
optional (#3473)
**Background** In v1.21.0 we introduced support for `--announce_ip` for replicas to announce their public IP addresses. Like Valkey, this uses `REPLCONF IP-ADDRESS` to announce their IP address. **The issue** Older Dragonfly releases (<1.21) did not support this feature. The master side simply returned an error for such `REPLCONF` attempts, however the replica code failed the replication, resulting in incompatible versions. **The fix** The fix is simple, just log an error if the master did not respect `REPLCONF IP-ADDRESS`. We can make this non-optional in the future again. However, in addition, I added a regression test to make sure we are backwards compatible with v1.19.2. We'll bump this up every once in a while.
- Loading branch information
Showing
3 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters