You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jingyun Tian (JIRA)" <ji...@apache.org> on 2018/09/18 02:51:00 UTC

[jira] [Created] (HBASE-21204) NPE when scan raw DELETE_FAMILY_VERSION and codec is not set

Jingyun Tian created HBASE-21204:
------------------------------------

             Summary: NPE when scan raw DELETE_FAMILY_VERSION and codec is not set
                 Key: HBASE-21204
                 URL: https://issues.apache.org/jira/browse/HBASE-21204
             Project: HBase
          Issue Type: Improvement
    Affects Versions: 2.0.0, 2.1.0, 2.2.0
            Reporter: Jingyun Tian
            Assignee: Jingyun Tian
             Fix For: 2.2.0, 2.0.0, 2.1.0


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 is used when searching; you look from maximum on down.
    MAXIMUM = 255;
}

Thus if we scan raw data which is DELETE_FAMILY_VERSION,it will throw NPE.






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)