Examples of closeAndDelete()


Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.closeAndDelete()

  @Override
  public void tearDown() throws Exception {
    HLog hlog = r.getLog();
    this.r.close();
    hlog.closeAndDelete();
    super.tearDown();
  }

  /**
   * Test that on a major compaction, if all cells are expired or deleted, then
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.closeAndDelete()

      // Merge the result of merging regions 0, 1, 2 and 3 with region 4
      merged = mergeAndVerify("merging regions 0+1+2+3 and 4",
        merged.getRegionInfo().getRegionNameAsString(),
        this.sourceRegions[4].getRegionNameAsString(), log, rows.length);
    } finally {
      log.closeAndDelete();
    }
  }

}
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.closeAndDelete()

    HRegion region = HRegion.createHRegion(hri, root, conf, htd);
    HLog hlog = region.getLog();

    // Close the new region to flush to disk. Close log file too.
    region.close();
    hlog.closeAndDelete();
    return region;
  }
}
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.closeAndDelete()

        // TODO: asserting here is problematic.
        assertNotNull(cp2);
        assertTrue(cp2.isPreWALRestoreCalled());
        assertTrue(cp2.isPostWALRestoreCalled());
        region.close();
        wal2.closeAndDelete();
        return null;
      }
    });
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.closeAndDelete()

  @After
  public void tearDown() throws Exception {
    HLog hlog = region.getLog();
    region.close();
    hlog.closeAndDelete();
  }

  @Test
  public void testRegionScannerReseek() throws Exception {
    // create new rows and column family to show how reseek works..
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.closeAndDelete()

      results.clear();
    }
    assertFalse(scanner.next(results));
    HLog hlog = testRegion.getLog();
    testRegion.close();
    hlog.closeAndDelete();
  }     
}
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.closeAndDelete()

  @Override
  public void tearDown() throws Exception {
    HLog hlog = r.getLog();
    this.r.close();
    hlog.closeAndDelete();
    if (this.cluster != null) {
      shutdownDfs(cluster);
    }
    super.tearDown();
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.closeAndDelete()

      // Merge the result of merging regions 0, 1, 2 and 3 with region 4
      merged = mergeAndVerify("merging regions 0+1+2+3 and 4",
        merged.getRegionInfo().getRegionNameAsString(),
        this.sourceRegions[4].getRegionNameAsString(), log, rows.length);
    } finally {
      log.closeAndDelete();
    }
  }
}
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.closeAndDelete()

  }

  protected void tearDown() throws Exception {
    HLog hlog = region.getLog();
    region.close();
    hlog.closeAndDelete();
    super.tearDown();
  }


  public void testRegionScannerReseek() throws Exception {
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.closeAndDelete()

      results.clear();
    }
    Assert.assertFalse(scanner.next(results));
    HLog hlog = testRegion.getLog();
    testRegion.close();
    hlog.closeAndDelete();
  }

  public void testSingleColumnValueFilter() throws IOException {

    // From HBASE-1821
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.