Voting-only node skipping local publication to – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 8.2-8.9

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your Elasticsearch operation.

Briefly, this error occurs when a node in Elasticsearch cluster is set as a “voting-only” node. This means it participates in elections for a new master node but doesn’t hold any data or perform any other tasks. The error message indicates that the node is skipping local publication due to its voting-only status. To resolve this, you can either change the node’s role from “voting-only” to a regular node or data node, or you can ignore the message if the node’s role is intentionally set to voting-only and it’s functioning as expected.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” voting-only node skipping local publication to ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: node, cluster.

Log Context

Log “voting-only node skipping local publication to” class name is PublicationTransportHandler.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 if (isVotingOnlyNode) {
 // Voting-only nodes publish their cluster state to other nodes in order to freshen the state held
 // on other full master nodes; but then fail the publication before committing. However there's no
 // need to freshen our local state so we can fail right away.
 throw new TransportException(
 new ElasticsearchException("voting-only node skipping local publication to " + destination)
 );
 } else {
 return handlePublishRequest.apply(publishRequest);
 }
 }

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?