Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21540

when set property "hbase.systemtables.compacting.memstore.type" to "basic" or "eager" will cause an exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.3.0, 2.2.2, 2.1.8, 3.0.0-beta-2
    • conf
    • None
    • Reviewed

    Description

      when set property

      "hbase.systemtables.compacting.memstore.type" value to lowercase (not uppercase ) "basic" or "eager" will

      cause an exception "java.lang.IllegalArgumentException: No enum constant

      org.apache.hadoop.hbase.MemoryCompactionPolicy.basic | eager" 

      if (this.getTableName().isSystemTable()) {
         inMemoryCompaction = MemoryCompactionPolicy.valueOf(conf.get("hbase.systemtables.compacting.memstore.type", "NONE").toUpperCase()); 
      } else {
       inMemoryCompaction = family.getInMemoryCompaction();
       }

      Attachments

        1. HBASE-21540.master.001.patch
          3 kB
          Guanghao Zhang
        2. HBASE-21540-and-ut.patch
          3 kB
          lixiaobao
        3. HBASE-21540-v2.patch
          3 kB
          Duo Zhang

        Activity

          People

            q977734161 lixiaobao
            q977734161 lixiaobao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: