Skip to content

Improve handshake failure messages#44485

Merged
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2019-07-17-improve-handshake-failure-messages
Jul 17, 2019
Merged

Improve handshake failure messages#44485
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2019-07-17-improve-handshake-failure-messages

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

Today we report an exception on a handshake failure (e.g. cluster name
mismatch) but the message does not include all the details of the mismatch. If
the mismatch is something subtle like my-cluster instead of my_cluster then
we cannot diagnose this from the message alone. This commit adds the details of
the local cluster to the message, along with the details of the remote cluster,
improving the utility of the exception message if reported in isolation.

Today we report an exception on a handshake failure (e.g. cluster name
mismatch) but the message does not include all the details of the mismatch. If
the mismatch is something subtle like `my-cluster` instead of `my_cluster` then
we cannot diagnose this from the message alone. This commit adds the details of
the local cluster to the message, along with the details of the remote cluster,
improving the utility of the exception message if reported in isolation.
@DaveCTurner DaveCTurner added >non-issue :Distributed/Network Http and internode communication implementations v8.0.0 v7.4.0 labels Jul 17, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed

@pmusa
Copy link
Copy Markdown
Contributor

pmusa commented Jul 17, 2019

Super cool. Looking forward to this change. You have no idea how many students mistype cluster names :)

Copy link
Copy Markdown
Contributor

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM good one :D

@DaveCTurner DaveCTurner merged commit f95a8ac into elastic:master Jul 17, 2019
@DaveCTurner DaveCTurner deleted the 2019-07-17-improve-handshake-failure-messages branch July 17, 2019 12:33
DaveCTurner added a commit that referenced this pull request Jul 17, 2019
Today we report an exception on a handshake failure (e.g. cluster name
mismatch) but the message does not include all the details of the mismatch. If
the mismatch is something subtle like `my-cluster` instead of `my_cluster` then
we cannot diagnose this from the message alone. This commit adds the details of
the local cluster to the message, along with the details of the remote cluster,
improving the utility of the exception message if reported in isolation.
@mfussenegger mfussenegger mentioned this pull request Mar 26, 2020
37 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Network Http and internode communication implementations >non-issue v7.4.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants