Prevent crashing from incompatible nodes without http when logging#9181
Prevent crashing from incompatible nodes without http when logging#9181jbudz merged 2 commits intoelastic:masterfrom
Conversation
|
LGTM Brought up a two node cluster:
Verified only one node had http enabled: Before this PR: With this PR: |
Backports PR #9181 **Commit 1:** Do not crash for warning and error nodes without http published address * Original sha: 89e6ded * Authored by Daniel Hodan <danielhodan@avocode.com> on 2016-11-04T19:15:02Z * Committed by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T15:16:47Z **Commit 2:** [es version check] Prevent failure on incompatible nodes without http * Original sha: 020dfd3 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T16:20:23Z
Backports PR #9181 **Commit 1:** Do not crash for warning and error nodes without http published address * Original sha: 89e6ded * Authored by Daniel Hodan <danielhodan@avocode.com> on 2016-11-04T19:15:02Z * Committed by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T15:16:47Z **Commit 2:** [es version check] Prevent failure on incompatible nodes without http * Original sha: 020dfd3 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T16:20:23Z
Backports PR #9181 **Commit 1:** Do not crash for warning and error nodes without http published address * Original sha: 89e6ded * Authored by Daniel Hodan <danielhodan@avocode.com> on 2016-11-04T19:15:02Z * Committed by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T15:16:47Z **Commit 2:** [es version check] Prevent failure on incompatible nodes without http * Original sha: 020dfd3 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T16:20:23Z
…9209) Backports PR #9181 **Commit 1:** Do not crash for warning and error nodes without http published address * Original sha: 89e6ded * Authored by Daniel Hodan <danielhodan@avocode.com> on 2016-11-04T19:15:02Z * Committed by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T15:16:47Z **Commit 2:** [es version check] Prevent failure on incompatible nodes without http * Original sha: 020dfd3 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T16:20:23Z
…9207) Backports PR #9181 **Commit 1:** Do not crash for warning and error nodes without http published address * Original sha: 89e6ded * Authored by Daniel Hodan <danielhodan@avocode.com> on 2016-11-04T19:15:02Z * Committed by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T15:16:47Z **Commit 2:** [es version check] Prevent failure on incompatible nodes without http * Original sha: 020dfd3 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T16:20:23Z
…9208) Backports PR #9181 **Commit 1:** Do not crash for warning and error nodes without http published address * Original sha: 89e6ded * Authored by Daniel Hodan <danielhodan@avocode.com> on 2016-11-04T19:15:02Z * Committed by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T15:16:47Z **Commit 2:** [es version check] Prevent failure on incompatible nodes without http * Original sha: 020dfd3 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T16:20:23Z
|
I started up 1 5.0.2 Elasticsearch node with and 1 5.0.0 Elasticsearch node with Both of my nodes have x-pack installed. I got this red status from Monitoring which looks like the "before" message Tyler tested; More of the log including that message; |
|
OK, there's an x-plugins PR for the similar issue with Monitoring. So this PR is verified in 5.0.2. |
…lastic#9208) Backports PR elastic#9181 **Commit 1:** Do not crash for warning and error nodes without http published address * Original sha: 89e6ded * Authored by Daniel Hodan <danielhodan@avocode.com> on 2016-11-04T19:15:02Z * Committed by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T15:16:47Z **Commit 2:** [es version check] Prevent failure on incompatible nodes without http * Original sha: 020dfd3 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T16:20:23Z Former-commit-id: 5c10f03
Incompatible nodes without http enabled fail with the error cannot find publish_address of undefined because the check expects the http object to be defined when writing to server logs.
To test, add a node to your cluster with http.enabled: false that has a patch version mismatch(warning) or major/minor version mismatch (error) with kibana.
This adds a commit on top of the original PR, #8982