@Override
  protected void tearDown() throws Exception {
    if (region != null) {
      region.destroyRegion();
    }

    if (hdfsStore != null) {
      hdfsStore.getFileSystem().delete(testDataDir, true);
      hdfsStore.destroy();
    }

    if (cache != null) {
      cache.close();
    }
    super.tearDown();
    TestUtils.removeExpectedException("sleep interrupted");
    TestUtils.removeExpectedException("java.io.InterruptedIOException");
  }
 protected FileStatus[] getBucketHoplogs(String regionAndBucket, final String type)
     throws IOException {
   return getBucketHoplogs(hdfsStore.getFileSystem(), regionAndBucket, type);
 }