Reload failed for plugin p getClass getSimpleName – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.3-8.9

Briefly, this error occurs when Elasticsearch fails to reload a plugin due to issues with the plugin’s class name retrieval. This could be due to a missing or incorrect class name, or a problem with the plugin’s code. To resolve this issue, you can try the following: 1) Verify the plugin’s class name and ensure it’s correctly specified in the code. 2) Check the plugin’s code for any errors or inconsistencies. 3) Try reinstalling the plugin. 4) If the problem persists, consider contacting the plugin’s developer or support for further assistance.

This guide will help you check for common problems that cause the log ” Reload failed for plugin [” + p.getClass().getSimpleName() + “] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, cluster, node, admin.

Log Context

Log “Reload failed for plugin [” + p.getClass().getSimpleName() + “]” classname is TransportNodesReloadSecureSettingsAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            // broadcast the new settings object (with the open embedded keystore) to all reloadable plugins
            pluginsService.filterPlugins(ReloadablePlugin.class).stream().forEach(p -> {
                try {
                    p.reload(settingsWithKeystore);
                } catch (final Exception e) {
                    logger.warn(() -> "Reload failed for plugin [" + p.getClass().getSimpleName() + "]"; e);
                    exceptions.add(e);
                }
            });
            ExceptionsHelper.rethrowAndSuppress(exceptions);
            return new NodesReloadSecureSettingsResponse.NodeResponse(clusterService.localNode(); null);

 

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?