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

[Chaos Monkey] Invalid data block encoding in ChangeEncodingAction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.3.0, 2.2.5
    • None
    • None

    Description

      I found the following exception when I run ITBLL:

      2020-05-12 11:43:14,201 WARN  [ChaosMonkey] policies.Policy: Exception performing action:
      java.lang.IllegalArgumentException: There is no data block encoder for given id '6'
              at org.apache.hadoop.hbase.io.encoding.DataBlockEncoding.getEncodingById(DataBlockEncoding.java:168)
              at org.apache.hadoop.hbase.chaos.actions.ChangeEncodingAction.lambda$perform$0(ChangeEncodingAction.java:50)
              at org.apache.hadoop.hbase.chaos.actions.Action.modifyAllTableColumns(Action.java:356)
              at org.apache.hadoop.hbase.chaos.actions.ChangeEncodingAction.perform(ChangeEncodingAction.java:48)
              at org.apache.hadoop.hbase.chaos.policies.PeriodicRandomActionPolicy.runOneIteration(PeriodicRandomActionPolicy.java:59)
              at org.apache.hadoop.hbase.chaos.policies.PeriodicPolicy.run(PeriodicPolicy.java:41)
              at java.lang.Thread.run(Thread.java:748)
      

      Because PREFIX_TREE is removed in DataBlockEncoding:

      /** Disable data block encoding. */
      NONE(0, null),
      // id 1 is reserved for the BITSET algorithm to be added later
      PREFIX(2, "org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder"),
      DIFF(3, "org.apache.hadoop.hbase.io.encoding.DiffKeyDeltaEncoder"),
      FAST_DIFF(4, "org.apache.hadoop.hbase.io.encoding.FastDiffDeltaEncoder"),
      // id 5 is reserved for the COPY_KEY algorithm for benchmarking
      // COPY_KEY(5, "org.apache.hadoop.hbase.io.encoding.CopyKeyDataBlockEncoder"),
      // PREFIX_TREE(6, "org.apache.hadoop.hbase.codec.prefixtree.PrefixTreeCodec"),
      ROW_INDEX_V1(7, "org.apache.hadoop.hbase.io.encoding.RowIndexCodecV1");
      

      Attachments

        Issue Links

          Activity

            People

              meiyi Yi Mei
              meiyi Yi Mei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: