Discovery result – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.1-8.9

Briefly, this error occurs when Elasticsearch nodes fail to discover each other in a cluster. This could be due to network issues, incorrect configuration of the discovery settings, or firewall blocking the communication. To resolve this, ensure that the network is functioning properly, check the discovery settings in the Elasticsearch configuration file, and verify that the firewall is not blocking the ports used by Elasticsearch. Also, ensure that all nodes are using the same transport protocol and that the cluster name is identical across all nodes.

This guide will help you check for common problems that cause the log ” {} discovery result{} ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: discovery.

Log Context

Log “{} discovery result{}” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                                cause = cause.getCause();
                            final String message = messageBuilder.length()  format("%s discovery result"; Peer.this); e);
                    synchronized (mutex) {