Class TestRowTooBig

java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRowTooBig

@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests") public class TestRowTooBig extends Object
Test case to check HRS throws RowTooBigException when row size exceeds configured limits.
  • Field Details

    • HTU

      private static final HBaseTestingUtil HTU
    • rootRegionDir

      private static org.apache.hadoop.fs.Path rootRegionDir
    • TEST_TD

      private static final org.apache.hadoop.hbase.client.TableDescriptor TEST_TD
  • Constructor Details

  • Method Details

    • before

      @BeforeAll public static void before() throws Exception
      Throws:
      Exception
    • after

      @AfterAll public static void after() throws Exception
      Throws:
      Exception
    • testScannersSeekOnFewLargeCells

      @Test public void testScannersSeekOnFewLargeCells() throws IOException
      Usecase: - create a row with 5 large cells (5 Mb each) - flush memstore but don't compact storefiles. - try to Get whole row. OOME happened before we actually get to reading results, but during seeking, as each StoreFile gets it's own scanner, and each scanner seeks after the first KV.
      Throws:
      IOException
    • testScanAcrossManySmallColumns

      @Test public void testScanAcrossManySmallColumns() throws IOException
      Usecase: - create a row with 1M cells, 10 bytes in each - flush & run major compaction - try to Get whole row. OOME happened in StoreScanner.next(..).
      Throws:
      IOException