-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Description
We have an API server using version 7.5.1 of the elasticsearch-rest-high-level-client and elasticsearch-rest-client-sniffer Java libraries, which matches the version of ES used on our cluster. It is working fine, but our application log ends up filled with messages saying
WARN o.e.c.s.ElasticsearchNodesSniffer - unknown role [ml] on node <name>
I asked about this on the official Elastic forum and was told by David Turner
(an Elastic Team Member) that this behavior is a bug and I should file it here. Specifically, he says "The ElasticsearchNodesSniffer only knows about the three core roles... IOW it was not updated when node roles became pluggable", and points to the code here:
Lines 209 to 222 in bbbdf94
| while (parser.nextToken() != JsonToken.END_ARRAY) { | |
| switch (parser.getText()) { | |
| case "master": | |
| master = true; | |
| break; | |
| case "data": | |
| data = true; | |
| break; | |
| case "ingest": | |
| ingest = true; | |
| break; | |
| default: | |
| logger.warn("unknown role [" + parser.getText() + "] on node [" + nodeId + "]"); | |
| } |
Metadata
Metadata
Assignees
Labels
No labels