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

(Ruan Yiming) #1

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?


(David Pilato) #2

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

(Jason Tedor) #3

This is not possible nor will it be made possible.

(Ruan Yiming) #4

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

(Ruan Yiming) #5

Thank you for the confirmation.


(system) #6

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