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
    • 3.0.0-alpha-1, 2.3.0, 2.2.2, 2.1.8
    • 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-v2.patch
          3 kB
          Duo Zhang
        2. HBASE-21540.master.001.patch
          3 kB
          Guanghao Zhang
        3. HBASE-21540-and-ut.patch
          3 kB
          lixiaobao

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: