Skip to content

Do not crash for warning and error nodes without http published address#8982

Closed
czertbytes wants to merge 1 commit intoelastic:masterfrom
czertbytes:nodes-without-publish-address
Closed

Do not crash for warning and error nodes without http published address#8982
czertbytes wants to merge 1 commit intoelastic:masterfrom
czertbytes:nodes-without-publish-address

Conversation

@czertbytes
Copy link

@czertbytes czertbytes commented Nov 5, 2016

Our ES setup contains nodes with different roles (master, data and client) where only client nodes have enabled http (http address). Master and data nodes expose only transport address. ES configuration is based on this design https://github.com/pires/kubernetes-elasticsearch-cluster .

After connecting Kibana to this ES cluster we are getting error Elasticsearch plugin is red with error message for elasticsearch plugin Cannot read property 'publish_address' of undefined caused by parsing node details (ES version) for master and data nodes which do not have given property.

This PR is fixing problem of accessing not existing property in node with default value to empty string.

@elasticmachine
Copy link
Contributor

Can one of the admins verify this patch?

@czertbytes czertbytes added the Team:Operations Kibana-Operations Team label Nov 7, 2016
@jbudz jbudz added the review label Nov 17, 2016
@jbudz
Copy link
Contributor

jbudz commented Nov 17, 2016

jenkins, test this

@jbudz
Copy link
Contributor

jbudz commented Nov 17, 2016

This will also cause errors on elasticsearch/kibana version mismatches.

@jbudz
Copy link
Contributor

jbudz commented Nov 17, 2016

@czertbytes the method getHumanizedNodeNames would need the same check, it won't necessarily be coming from warningNodes. Would you be up for adding that?

@jbudz
Copy link
Contributor

jbudz commented Nov 22, 2016

@czertbytes Thanks for the fix! I added a commit on top of yours in a new PR at #9181, closing this one now.

@jbudz jbudz closed this Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team:Operations Kibana-Operations Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants