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

NPE when scan raw DELETE_FAMILY_VERSION and codec is not set

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0, 2.0.0, 2.2.0
    • 3.0.0-alpha-1, 2.1.0, 2.2.0
    • None
    • None
    • 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.branch-2.001.patch
          3 kB
          Jingyun Tian
        2. HBASE-21204.branch-2.002.patch
          3 kB
          Jingyun Tian
        3. HBASE-21204.master.001.patch
          4 kB
          Jingyun Tian
        4. HBASE-21204.master.002.patch
          3 kB
          Jingyun Tian
        5. HBASE-21204.master.003.patch
          3 kB
          Jingyun Tian

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: