Registered two transport handlers for action handlers – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when two different plugins or modules in Elasticsearch are trying to register the same transport action. This can happen due to a misconfiguration or a conflict between plugins. To resolve this issue, you can try the following: 1) Check your plugins and ensure they are compatible with your Elasticsearch version. 2) If you have custom plugins, ensure they are not trying to register the same transport action. 3) Uninstall and reinstall your plugins one by one to identify the conflicting ones. 4) Update your Elasticsearch version if it’s outdated.

This guide will help you check for common problems that cause the log ” registered two transport handlers for action {}; handlers: {}; {} ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: recovery.

Log Context

Log “registered two transport handlers for action {}; handlers: {}; {}” classname is TransportService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

     protected  void registerRequestHandler(RequestHandlerRegistry reg) {
        synchronized (requestHandlerMutex) {
            RequestHandlerRegistry replaced = requestHandlers.get(reg.getAction());
            requestHandlers = MapBuilder.newMapBuilder(requestHandlers).put(reg.getAction(); reg).immutableMap();
            if (replaced != null) {
                logger.warn("registered two transport handlers for action {}; handlers: {}; {}"; reg.getAction(); reg; replaced);
            }
        }
    }

    public void removeHandler(String action) {




 

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?