[
https://issues.apache.org/jira/browse/HBASE-18629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ted Yu updated HBASE-18629:
---------------------------
Attachment: 18629.addendum
When integrating, I found that stopRunner() needs to be static since
ChaosMonkeyRunner#main() doesn't expose the ChaosMonkeyRunner instance it
creates.
The addendum allows stopRunner() to be called from native code.
> Enhance ChaosMonkeyRunner with interruptibility
> -----------------------------------------------
>
> Key: HBASE-18629
> URL: https://issues.apache.org/jira/browse/HBASE-18629
> Project: HBase
> Issue Type: Improvement
> Reporter: Ted Yu
> Assignee: Ted Yu
> Fix For: 3.0.0, 2.0.0-alpha-3
>
> Attachments: 18629.addendum, 18629.v1.txt, 18629.v2.txt
>
>
> Currently ChaosMonkeyRunner performs looping unconditionally:
> {code}
> while (true) {// loop here until got killed
> Thread.sleep(10000);
> }
> {code}
> When ChaosMonkeyRunner is invoked programmatically, it is desirable to add
> interruptibility to the runner so that the caller can manage its lifetime.
> Another enhancement is to allow passing the path to hbase-site.xml where
> chaos monkey parameters are specified.
> This is useful when the underlying hbase-site.xml is not on classpath.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)