Recovery of from interrupted by network disconnect will retry in cause – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.1-7.15

Briefly, this error occurs when Elasticsearch’s recovery process from a network interruption is disrupted. This could be due to unstable network connections, hardware issues, or configuration problems. To resolve this, you can check and stabilize your network connection, ensure your hardware is functioning properly, or review your Elasticsearch configuration settings. Additionally, increasing the timeout settings or adjusting the recovery settings in Elasticsearch might help to avoid such interruptions.

This guide will help you check for common problems that cause the log ” recovery of {} from [{}] interrupted by network disconnect; will retry in [{}]; cause: [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: recovery, indices, network.

Log Context

Log “recovery of {} from [{}] interrupted by network disconnect; will retry in [{}]; cause: [{}]” classname is PeerRecoveryTargetService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                    recoverySettings.activityTimeout());
                return;
            }

            if (cause instanceof ConnectTransportException) {
                logger.info("recovery of {} from [{}] interrupted by network disconnect; will retry in [{}]; cause: [{}]";
                    request.shardId(); request.sourceNode(); recoverySettings.retryDelayNetwork(); cause.getMessage());
                if (request.sourceNode().getVersion().onOrAfter(Version.V_7_9_0)) {
                    reestablishRecovery(request; cause.getMessage(); recoverySettings.retryDelayNetwork());
                } else {
                    retryRecovery(recoveryId; cause.getMessage(); recoverySettings.retryDelayNetwork();

 

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?