@Test(timeout=600000) public void testMajorCompaction() throws IOException, InterruptedException { compaction("testMajorCompaction", 8, CompactionState.MAJOR, false); }
@Test(timeout=600000) public void testMinorCompaction() throws IOException, InterruptedException { compaction("testMinorCompaction", 15, CompactionState.MINOR, false); }
@Test(timeout=600000) public void testMajorCompactionOnFamily() throws IOException, InterruptedException { compaction("testMajorCompactionOnFamily", 8, CompactionState.MAJOR, true); }
@Test(timeout=600000) public void testMinorCompactionOnFamily() throws IOException, InterruptedException { compaction("testMinorCompactionOnFamily", 15, CompactionState.MINOR, true); }
public CompactionState getCompactionState(String tableNameOrRegionName) throws IOException, InterruptedException { return delegate.getCompactionState(tableNameOrRegionName); }
public CompactionState getCompactionState(byte[] tableNameOrRegionName) throws IOException, InterruptedException { return delegate.getCompactionState(tableNameOrRegionName); }
@Test(timeout=60000) public void testMajorCompaction() throws IOException, InterruptedException { compaction("testMajorCompaction", 8, CompactionState.MAJOR, false); }
@Test(timeout=60000) public void testMinorCompaction() throws IOException, InterruptedException { compaction("testMinorCompaction", 15, CompactionState.MINOR, false); }
@Test(timeout=60000) public void testMajorCompactionOnFamily() throws IOException, InterruptedException { compaction("testMajorCompactionOnFamily", 8, CompactionState.MAJOR, true); }
@Test(timeout=60000) public void testMinorCompactionOnFamily() throws IOException, InterruptedException { compaction("testMinorCompactionOnFamily", 15, CompactionState.MINOR, true); }
/** * Get the current compaction state of a table or region. It could be in a major compaction, a * minor compaction, both, or none. * @param tableNameOrRegionName table or region to major compact * @throws IOException if a remote or network exception occurs * @throws InterruptedException * @return the current compaction state */ public CompactionState getCompactionState(final String tableNameOrRegionName) throws IOException, InterruptedException { return getCompactionState(Bytes.toBytes(tableNameOrRegionName)); }
/** * Get the current compaction state of a table or region. * It could be in a major compaction, a minor compaction, both, or none. * * @param tableNameOrRegionName table or region to major compact * @throws IOException if a remote or network exception occurs * @throws InterruptedException * @return the current compaction state */ public CompactionState getCompactionState(final String tableNameOrRegionName) throws IOException, InterruptedException { return getCompactionState(Bytes.toBytes(tableNameOrRegionName)); }
CompactionState getCompactionState(String tableNameOrRegionName) throws IOException, InterruptedException;
CompactionState getCompactionState(byte[] tableNameOrRegionName) throws IOException, InterruptedException;