Class TestHBaseMetaEdit

java.lang.Object
org.apache.hadoop.hbase.TestHBaseMetaEdit

public class TestHBaseMetaEdit extends Object
Test being able to edit hbase:meta.
  • Field Details

  • Constructor Details

  • Method Details

    • before

      public void before() throws Exception
      Throws:
      Exception
    • after

      public void after() throws Exception
      Throws:
      Exception
    • getMetaDescriptor

      private org.apache.hadoop.hbase.client.TableDescriptor getMetaDescriptor() throws org.apache.hadoop.hbase.TableNotFoundException, IOException
      Throws:
      org.apache.hadoop.hbase.TableNotFoundException
      IOException
    • testEditMeta

      public void testEditMeta() throws IOException
      Set versions, set HBASE-16213 indexed block encoding, and add a column family. Delete the column family. Then try to delete a core hbase:meta family (should fail). Verify they are all in place by looking at TableDescriptor AND by checking what the RegionServer sees after opening Region.
      Throws:
      IOException
    • testAlterMetaWithReadOnly

      public void testAlterMetaWithReadOnly() throws IOException
      Validate whether meta table can be altered as READ only, shouldn't be allowed otherwise it will break assignment functionalities. See HBASE-24977.
      Throws:
      IOException