-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Updated servePeers to remove the grpc server #13565
Conversation
f5c71ad
to
46c5ee7
Compare
Just rebased the PR. |
That's pretty big change.
I agree that wide access to this port is misleading and promotes bad usage patterns. If we want to proceed I think we should mention it as an explicit breaking change in the Changelog as some user's might depend on this behavior. |
46c5ee7
to
fa14e8f
Compare
Thanks @ptabor for the feedback. Just added a breaking change item. |
fa14e8f
to
2a060d5
Compare
2a060d5
to
d059e79
Compare
@ptabor I removed the gRPC server from peer listener in the integration test as well. All tests passed. Usually users do not know that the 2380 port can also serve client requests because there is no any documentation on this. So I think it might be safe to remove the misleading functionality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It seems it could break |
d059e79
to
2b8d1c3
Compare
@ptabor I tested manually in my local environment, and confirmed that it doesn't break the corruption check functionality. Firstly I build the etcd binary using my branch ahrtr:remove_peer_serve_client_requests. Secondly, start a etcd cluster with only 2 members (note that I already got the etcd/bin directory included in the $PATH),
Thirdly, confirmed that infra1 is the leader,
Lastly, the leader prints the following log entries periodically (every 5 seconds),
BTW, I rebased the PR. Please let me know if you have other concerns or comments. |
cc @spzala |
2b8d1c3
to
a879ccf
Compare
Just rebased this PR. |
FYI, the command
|
Hi @ptabor , Do you still have any concern? cc @serathius @spzala |
@ptabor any other concerns? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for checking.
Fix issues/13564
@gyuho @serathius @ptabor