Skip to content

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

Merged
s1monw merged 2 commits intoelastic:masterfrom
s1monw:fail_handshake_harder
Jun 1, 2016
Merged

Throw IllegalStateException when handshake fails due to version or cluster mismatch#18676
s1monw merged 2 commits intoelastic:masterfrom
s1monw:fail_handshake_harder

Conversation

@s1monw
Copy link
Copy Markdown
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
Copy Markdown
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