Hi everyone,
So I've created an Action Plugin that intercepts RestRequests and performs some action for specific endpoints; I used the getRestHandlerWrapper()
function to do this.
The issue is that I already have another plugin installed that implements this function, so elasticsearch doesn't start up. I know the function documentation says that only one installed plugin should implement this function. I was just wondering if there was any setting I could change, so that I could have both plugins installed, but disable one of them when I start elasticsearch, because I would like to be able to have both plugins installed at once.
Also, would it be possible for my plugin to override the getRestHandlerWrapper()
function of the existing plugin? So that Elasticsearch uses my RestHandlerWrapper instead of the preinstalled plugin in case both plugins are installed.
Thanks a lot!