Skip to content
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

Feat: Block instance replication of itself and it's own replicas #1488

Merged
merged 10 commits into from
Jun 12, 2023

Conversation

uds5501
Copy link
Contributor

@uds5501 uds5501 commented Jun 7, 2023

WIP: A patch to block an instance from replicating itself and it's own replicas

Fixes: #1484

@git-hulk
Copy link
Member

git-hulk commented Jun 8, 2023

Thanks @uds5501, you need to fix the clang-tidy error: https://github.com/apache/incubator-kvrocks/actions/runs/5199313230/jobs/9376587287?pr=1488#step:8:1166 to pass the CI. And can you add some Go tests to make sure it works?

@uds5501
Copy link
Contributor Author

uds5501 commented Jun 10, 2023

@git-hulk , added integration test and clang-tidy error

@git-hulk
Copy link
Member

@git-hulk , added integration test and clang-tidy error

Thanks for your efforts

src/server/server.cc Outdated Show resolved Hide resolved
@uds5501 uds5501 requested a review from PragmaTwice June 11, 2023 14:15
Copy link
Contributor

@torwig torwig left a comment

Choose a reason for hiding this comment

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

LGTM

@git-hulk
Copy link
Member

Thanks all, merging...

@git-hulk git-hulk merged commit 517864a into apache:unstable Jun 12, 2023
@git-hulk
Copy link
Member

@uds5501 Thanks for your contribution.

jihuayu pushed a commit to jihuayu/incubator-kvrocks that referenced this pull request Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't allow to slaveof itself or its replica
4 participants