On Thu, Aug 2, 2012 at 7:01 PM, Kevin Shin <[email protected]> wrote: > Hi everyone, > > I'm working on building unit tests for a Coprocessor class I'm building > with HBase for a Lucene search index. > In writing the unit tests, I can't seem to figure out how to call/test > postSplit() and postWALRestore() from the HBase API. > Specifically, all of the implementations of splitting a region I've run > into have been asynchronous and do not complete (I test with a while loop > checking for increased number of regions) > and I can't think of a way to crash and bring up an HBase Region (Only > close and open, not reopen). If there are classes to create synchronous > splits and crash/reopen an HBase Region, would greatly appreciate the > advice. Thanks! >
What if you just stood up a lone HRegion? See TestHRegion for examples of how to do it. You should be able to then invoke the HRegion methods directly? St.Ack
