No distributed watch execution info found for watch on shard got configuration for – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.15

Briefly, this error occurs when Elasticsearch cannot find the distributed watch execution information for a specific shard. This could be due to a misconfiguration or a network issue that prevents the node from accessing the required information. To resolve this issue, you can try the following: 1) Check and correct the configuration settings related to the watch and shard. 2) Ensure that the network connectivity between the nodes is stable and reliable. 3) Restart the Elasticsearch cluster to refresh the system and clear any temporary glitches.

This guide will help you check for common problems that cause the log ” no distributed watch execution info found for watch [{}] on shard [{}]; got configuration for {} ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: shard, plugin.

Log Context

Log “no distributed watch execution info found for watch [{}] on shard [{}]; got configuration for {}” classname is WatcherIndexingListener.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            try {
                Watch watch = parser.parseWithSecrets(operation.id(); true; operation.source(); now; XContentType.JSON;
                    operation.getIfSeqNo(); operation.getIfPrimaryTerm());
                ShardAllocationConfiguration shardAllocationConfiguration = configuration.localShards.get(shardId);
                if (shardAllocationConfiguration == null) {
                    logger.debug("no distributed watch execution info found for watch [{}] on shard [{}]; got configuration for {}";
                        watch.id(); shardId; configuration.localShards.keySet());
                    return;
                }

                boolean shouldBeTriggered = shardAllocationConfiguration.shouldBeTriggered(watch.id());

 

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?