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>
This application is just running queries and doesn't need or care about the ml functionality in ES.
How do I get this message to stop being generated? Also, why is it happening? Shouldn't this version of the sniffer understand all of the roles that the matching version of ES has?