You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jingyun Tian (JIRA)" <ji...@apache.org> on 2018/09/18 02:52:00 UTC
[jira] [Updated] (HBASE-21204) NPE when scan raw
DELETE_FAMILY_VERSION and codec is not set
[ https://issues.apache.org/jira/browse/HBASE-21204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jingyun Tian updated HBASE-21204:
---------------------------------
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.
was:
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.
> 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.1.0, 2.0.0, 2.2.0
> Reporter: Jingyun Tian
> Assignee: Jingyun Tian
> Priority: Major
> Fix For: 2.1.0, 2.0.0, 2.2.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 = 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)