Skip to content

ElasticsearchNodesSniffer complains about "unknown role [ml]" #52864

@bobbyi

Description

@bobbyi

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:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions