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

Compacting memstore config should handle lower case

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Tushar reported seeing the following in region server log when entering 'basic' for compacting memstore type:

      2018-07-10 19:43:45,944 ERROR [RS_OPEN_REGION-regionserver/c01s22:16020-0] handler.OpenRegionHandler: Failed open of region=usertable,user6379,1531182972304.69abd81a44e9cc3ef9e150709f4f69ab., starting to roll back the global memstore size.
      java.io.IOException: java.lang.IllegalArgumentException: No enum constant org.apache.hadoop.hbase.MemoryCompactionPolicy.basic
              at org.apache.hadoop.hbase.regionserver.HRegion.initializeStores(HRegion.java:1035)
              at org.apache.hadoop.hbase.regionserver.HRegion.initializeRegionInternals(HRegion.java:900)
              at org.apache.hadoop.hbase.regionserver.HRegion.initialize(HRegion.java:872)
              at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:7048)
              at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:7006)
              at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6977)
              at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6933)
              at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6884)
              at org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.openRegion(OpenRegionHandler.java:284)
              at org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.process(OpenRegionHandler.java:109)
              at org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:104)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.hadoop.hbase.MemoryCompactionPolicy.basic
              at java.lang.Enum.valueOf(Enum.java:238)
              at org.apache.hadoop.hbase.MemoryCompactionPolicy.valueOf(MemoryCompactionPolicy.java:26)
              at org.apache.hadoop.hbase.regionserver.HStore.getMemstore(HStore.java:331)
              at org.apache.hadoop.hbase.regionserver.HStore.<init>(HStore.java:271)
              at org.apache.hadoop.hbase.regionserver.HRegion.instantiateHStore(HRegion.java:5531)
              at org.apache.hadoop.hbase.regionserver.HRegion$1.call(HRegion.java:999)
              at org.apache.hadoop.hbase.regionserver.HRegion$1.call(HRegion.java:996)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              ... 3 more
      2018-07-10 19:43:45,944 ERROR [RS_OPEN_REGION-regionserver/c01s22:16020-1] handler.OpenRegionHandler: Failed open of region=temp,,1530511278693.0be48eedc68b9358aa475946d00571f1., starting to roll back the global memstore size.
      java.io.IOException: java.lang.IllegalArgumentException: No enum constant org.apache.hadoop.hbase.MemoryCompactionPolicy.basic
              at org.apache.hadoop.hbase.regionserver.HRegion.initializeStores(HRegion.java:1035)
              at org.apache.hadoop.hbase.regionserver.HRegion.initializeRegionInternals(HRegion.java:900)
              at org.apache.hadoop.hbase.regionserver.HRegion.initialize(HRegion.java:872)
              at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:7048)
              at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:7006)
              at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6977)
              at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6933)
              at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6884)
              at org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.openRegion(OpenRegionHandler.java:284)
              at org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.process(OpenRegionHandler.java:109)
              at org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:104)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.hadoop.hbase.MemoryCompactionPolicy.basic
              at java.lang.Enum.valueOf(Enum.java:238)
              at org.apache.hadoop.hbase.MemoryCompactionPolicy.valueOf(MemoryCompactionPolicy.java:26)
              at org.apache.hadoop.hbase.regionserver.HStore.getMemstore(HStore.java:331)
              at org.apache.hadoop.hbase.regionserver.HStore.<init>(HStore.java:271)
              at org.apache.hadoop.hbase.regionserver.HRegion.instantiateHStore(HRegion.java:5531)
              at org.apache.hadoop.hbase.regionserver.HRegion$1.call(HRegion.java:999)
              at org.apache.hadoop.hbase.regionserver.HRegion$1.call(HRegion.java:996)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      

      When loading the config, we should handle lower case specification.

        Attachments

          Activity

            People

            • Assignee:
              yuzhihong@gmail.com Ted Yu
              Reporter:
              tsharma Tushar
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: