On Fri, Aug 3, 2012 at 11:01 PM, Kevin Shin
<[email protected]> wrote:
> Hey everyone,
>
> I'm testing a postWALRestore functionality; I've pulled out a region
> server, aborted it (closes without flushing the WALs), and would like to
> restart it in order to see if the restart triggers a recovery.
> I'm running on a mini cluster, and I was wondering if someone could point
> me to the API that would allow me to restart either the entire mini cluster
> (not stop/start as that creates a new instance) or restart the region
> server alone. Thanks!
>


Use HBaseTestingUtility.getHBaseCluster to get back a MiniHBaseCluster
then call
MiniHBaseCluster.startRegionServer.

For examples, grep startRegionServer user hbase-server/src/test and
you'll find idioms like:

TestRollingRestart.java:    cluster.startRegionServer().waitForServerOnline();

...where we start a server then wait on it to come up.

Hope that helps.

St.Ack

Reply via email to