[
https://issues.apache.org/jira/browse/HBASE-18629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16136885#comment-16136885
]
Mike Drob commented on HBASE-18629:
-----------------------------------
We should expose a way to run it other than `main` then so that the instance is
exposed.
> 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)