Global checkpoint sync failed – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.17

Briefly, this error occurs when Elasticsearch fails to synchronize global checkpoints across all replicas of a shard. This could be due to network issues, heavy indexing load, or insufficient resources. To resolve this, you can try reducing the indexing load, increasing system resources, or checking the network connectivity between nodes. Additionally, ensure that the Elasticsearch cluster is properly configured and that all nodes are running the same version to avoid compatibility issues.

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

Log Context

Log “{} global checkpoint sync failed” classname is GlobalCheckpointSyncAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        final ThreadContext threadContext = threadPool.getThreadContext();
        try (ThreadContext.StoredContext ignore = threadContext.stashContext()) {
            threadContext.markAsSystemContext();
            execute(new Request(shardId); ActionListener.wrap(r -> {}; e -> {
                if (ExceptionsHelper.unwrap(e; AlreadyClosedException.class; IndexShardClosedException.class) == null) {
                    logger.info(new ParameterizedMessage("{} global checkpoint sync failed"; shardId); e);
                }
            }));
        }
    }

 

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?