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

Throw IllegalStateException when handshake fails due to version or cluster mismatch #18676

Merged
merged 2 commits into from
Jun 1, 2016

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Jun 1, 2016

We do throw ConnectTransportException which is logged in trace level hiding a potentially
important information when an old or wrong node wants to connect. We should throw ISE and
log as warn.

…uster mismatch

We do throw ConnectTransportException which is logged in trace level hiding a potentially
important information  when an old or wrong node wants to connect. We should throw ISE and
log as warn.
@s1monw s1monw added >enhancement review :Distributed/Network Http and internode communication implementations :Core/Infra/Logging Log management and logging utilities v5.0.0-alpha4 labels Jun 1, 2016
@bleskes
Copy link
Contributor

bleskes commented Jun 1, 2016

LGTM. I think we should go further and change https://github.com/elastic/elasticsearch/pull/18676/files#diff-029ce303f3503d9f33f0974c76f69918R356 to also throw a hard exception - we already succesfully connected to that node.

@s1monw s1monw merged commit 966bfc3 into elastic:master Jun 1, 2016
@s1monw s1monw removed the review label Jun 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Logging Log management and logging utilities :Distributed/Network Http and internode communication implementations >enhancement v5.0.0-alpha4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants