Skip to content

Fix wrong master port if enabling master-use-repl-port#360

Merged
ShooterIT merged 1 commit intounstablefrom
wrong-master-port
Sep 10, 2021
Merged

Fix wrong master port if enabling master-use-repl-port#360
ShooterIT merged 1 commit intounstablefrom
wrong-master-port

Conversation

@ShooterIT
Copy link
Copy Markdown
Member

If enabling master-use-repl-port, in replica, its master port is wrong,
it should be master listen port instead of listen port + 1.

If enabling master-use-repl-port, in replica, its master port is wrong,
it should be master listen port instead of listen port + 1.
@ShooterIT ShooterIT requested a review from git-hulk September 10, 2021 08:36
@git-hulk git-hulk changed the title Fix wrong mater port if enabling master-use-repl-port Fix wrong master port if enabling master-use-repl-port Sep 10, 2021
@git-hulk
Copy link
Copy Markdown
Member

So the replica would be failed after restarting the server if we rewrite the config file, right?

@ShooterIT
Copy link
Copy Markdown
Member Author

So the replica would be failed after restarting the server if we rewrite the config file, right?

Yes, and other clients would see wrong master port, for sentinel, it will always try to fix replication config but fails

@ShooterIT ShooterIT merged commit 54f3b34 into unstable Sep 10, 2021
@ShooterIT ShooterIT deleted the wrong-master-port branch September 10, 2021 09:11
ShooterIT added a commit to ShooterIT/kvrocks that referenced this pull request Sep 10, 2021
If enabling master-use-repl-port, in replica, its master port is wrong,
it should be master listen port instead of listen port + 1.
@ShooterIT ShooterIT mentioned this pull request Sep 10, 2021
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.

2 participants