resolve node name fallback on published/node ip as fallback#1012
Merged
pickypg merged 2 commits intoJul 2, 2026
Conversation
when using `0.0.0.0`, the node match fails because: - `findTargetNode()` only compares local NIC addresses against `node.boundAddresses` - `boundAddresses` is empty for all nodes The code never falls back to comparing against `node.httpPublishAddr` or `node.ip` — even though it's likely containing the information needed for a positively match of the node
Member
|
buildkite test this |
pickypg
approved these changes
Jul 2, 2026
Comment on lines
+108
to
+115
| ProcessProfile ela01 = makeNode("NTG-PRO-ELA-01", "172.16.1.61", "172.16.1.61", | ||
| new java.util.HashSet<>()); | ||
| ProcessProfile ela02 = makeNode("NTG-PRO-ELA-02", "172.16.1.62", "172.16.1.62", | ||
| new java.util.HashSet<>()); | ||
| ProcessProfile ela03 = makeNode("NTG-PRO-ELA-03", "172.16.1.63", "172.16.1.63", | ||
| new java.util.HashSet<>()); | ||
| ProcessProfile ela04 = makeNode("NTG-PRO-ELA-04", "172.16.1.64", "172.16.1.64", | ||
| new java.util.HashSet<>()); |
Member
There was a problem hiding this comment.
Suggested change
| ProcessProfile ela01 = makeNode("NTG-PRO-ELA-01", "172.16.1.61", "172.16.1.61", | |
| new java.util.HashSet<>()); | |
| ProcessProfile ela02 = makeNode("NTG-PRO-ELA-02", "172.16.1.62", "172.16.1.62", | |
| new java.util.HashSet<>()); | |
| ProcessProfile ela03 = makeNode("NTG-PRO-ELA-03", "172.16.1.63", "172.16.1.63", | |
| new java.util.HashSet<>()); | |
| ProcessProfile ela04 = makeNode("NTG-PRO-ELA-04", "172.16.1.64", "172.16.1.64", | |
| new java.util.HashSet<>()); | |
| ProcessProfile ela01 = makeNode("NTG-PRO-ELA-01", "172.16.1.61", "172.16.1.61", new HashSet<>()); | |
| ProcessProfile ela02 = makeNode("NTG-PRO-ELA-02", "172.16.1.62", "172.16.1.62", new HashSet<>()); | |
| ProcessProfile ela03 = makeNode("NTG-PRO-ELA-03", "172.16.1.63", "172.16.1.63", new HashSet<>()); | |
| ProcessProfile ela04 = makeNode("NTG-PRO-ELA-04", "172.16.1.64", "172.16.1.64", new HashSet<>()); |
Comment on lines
+118
to
+119
| ProcessProfile result = checker.findLocalTargetNode("172.16.1.61", | ||
| List.of(ela01, ela02, ela03, ela04)); |
Member
There was a problem hiding this comment.
Suggested change
| ProcessProfile result = checker.findLocalTargetNode("172.16.1.61", | |
| List.of(ela01, ela02, ela03, ela04)); | |
| ProcessProfile result = checker.findLocalTargetNode("172.16.1.61", List.of(ela01, ela02, ela03, ela04)); |
Comment on lines
+130
to
+131
| ProcessProfile node = makeNode("node-1", "10.0.0.1", "10.0.0.1", | ||
| new java.util.HashSet<>()); |
Member
There was a problem hiding this comment.
Suggested change
| ProcessProfile node = makeNode("node-1", "10.0.0.1", "10.0.0.1", | |
| new java.util.HashSet<>()); | |
| ProcessProfile node = makeNode("node-1", "10.0.0.1", "10.0.0.1", new HashSet<>()); |
Comment on lines
+93
to
+94
| ProcessProfile node = makeNode("NTG-PRO-ELA-01", "10.0.0.5", "172.16.1.61", | ||
| new java.util.HashSet<>()); |
Member
There was a problem hiding this comment.
Suggested change
| ProcessProfile node = makeNode("NTG-PRO-ELA-01", "10.0.0.5", "172.16.1.61", | |
| new java.util.HashSet<>()); | |
| ProcessProfile node = makeNode("NTG-PRO-ELA-01", "10.0.0.5", "172.16.1.61", new HashSet<>()); |
Comment on lines
+82
to
+83
| ProcessProfile node = makeNode("NTG-PRO-ELA-01", "172.16.1.61", "172.16.1.61", | ||
| new java.util.HashSet<>()); |
Member
There was a problem hiding this comment.
Suggested change
| ProcessProfile node = makeNode("NTG-PRO-ELA-01", "172.16.1.61", "172.16.1.61", | |
| new java.util.HashSet<>()); | |
| ProcessProfile node = makeNode("NTG-PRO-ELA-01", "172.16.1.61", "172.16.1.61", new HashSet<>()); |
Comment on lines
+67
to
+70
| ProcessProfile node1 = makeNode("node-1", "10.0.0.1", "10.0.0.1", | ||
| new java.util.HashSet<>(Set.of("10.0.0.1"))); | ||
| ProcessProfile node2 = makeNode("node-2", "10.0.0.2", "10.0.0.2", | ||
| new java.util.HashSet<>(Set.of("10.0.0.2"))); |
Member
There was a problem hiding this comment.
Suggested change
| ProcessProfile node1 = makeNode("node-1", "10.0.0.1", "10.0.0.1", | |
| new java.util.HashSet<>(Set.of("10.0.0.1"))); | |
| ProcessProfile node2 = makeNode("node-2", "10.0.0.2", "10.0.0.2", | |
| new java.util.HashSet<>(Set.of("10.0.0.2"))); | |
| ProcessProfile node1 = makeNode("node-1", "10.0.0.1", "10.0.0.1", new HashSet<>(Set.of("10.0.0.1"))); | |
| ProcessProfile node2 = makeNode("node-2", "10.0.0.2", "10.0.0.2", new HashSet<>(Set.of("10.0.0.2"))); |
Comment on lines
+53
to
+54
| ProcessProfile node = makeNode("NTG-PRO-ELA-01", "172.16.1.61", "172.16.1.61", | ||
| new java.util.HashSet<>()); |
Member
There was a problem hiding this comment.
Suggested change
| ProcessProfile node = makeNode("NTG-PRO-ELA-01", "172.16.1.61", "172.16.1.61", | |
| new java.util.HashSet<>()); | |
| ProcessProfile node = makeNode("NTG-PRO-ELA-01", "172.16.1.61", "172.16.1.61", new HashSet<>()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #436
When using
0.0.0.0innetwork.host(or other networking settings - note0.0.0.0is default if security auto-configuration was used), the node match forlocalorremoteelasticsearch cluster diagnostics types fail because:findTargetNode()only compares local NIC addresses againstnode.boundAddressesboundAddressesis empty for all nodes The code never falls back to comparing againstnode.httpPublishAddrornode.ip— even though it's likely containing the information needed for a positively match of the nodeReproduction on 9.3.1 support-diagnostics
1- Download latest elasticsearch, in my case I used
elasticsearch-9.4.3-darwin-aarch64.tar.gz2- add following to
conf/elasticsearch.yml:3- run
bin/elasticsearch, this will giveelasticpassword you will need in next step4- run diagnostics with
./diagnostics.sh --type local -u elastic --password --ssl --bypassDiagVerify --noVerify5- note diagnostics.log cannot match the node so does not attempt to include logs or run system calls :
outcome after the change
logsandsyscallsdirectory are included in diagnostics bundle anddiagnostics.logshows a warning about matching that relied on http publish address (likely when customer used0.0.0.0)Checklist