How to enable Runtime halt() and exit() in plugin?

As I noticed that, start from ES5.0. The security manager can not be disabled. I am developing a plugin which can restart the JVM for rolling restart purpose. I check the that no package can exit nor halt the JVM.

Do you have any suggestion for my requirement?


You should probably do that externally and not from a plugin...
Why a plugin should stop elasticsearch after all?

This is not possible nor will it be made possible.

Got it, I will call the Nova API for the VM restart.

Thank you for the confirmation.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.