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

NPE when scan raw DELETE_FAMILY_VERSION and codec is not set

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0, 2.0.0, 2.2.0
    • Fix Version/s: 3.0.0, 2.1.0, 2.2.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      There are 7 types of our Cell,
      Minimum((byte)0),
      Put((byte)4),
      Delete((byte)8),
      DeleteFamilyVersion((byte)10),
      DeleteColumn((byte)12),
      DeleteFamily((byte)14),
      Maximum((byte)255);

      But there are only 6 types of our CellType protobuf definition:
      enum CellType

      { MINIMUM = 0; PUT = 4; DELETE = 8; DELETE_FAMILY_VERSION = 10; DELETE_COLUMN = 12; DELETE_FAMILY = 14; MAXIMUM = 255; }

      Thus if we scan raw data which is DELETE_FAMILY_VERSION´╝îit will throw NPE.

        Attachments

        1. HBASE-21204.master.003.patch
          3 kB
          Jingyun Tian
        2. HBASE-21204.master.002.patch
          3 kB
          Jingyun Tian
        3. HBASE-21204.master.001.patch
          4 kB
          Jingyun Tian
        4. HBASE-21204.branch-2.002.patch
          3 kB
          Jingyun Tian
        5. HBASE-21204.branch-2.001.patch
          3 kB
          Jingyun Tian

          Issue Links

            Activity

              People

              • Assignee:
                tianjingyun Jingyun Tian
                Reporter:
                tianjingyun Jingyun Tian
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: