[
https://issues.apache.org/jira/browse/HBASE-24951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ajeet Rai updated HBASE-24951:
------------------------------
Description:
extra characters "\x00" are added in endkey while creating new region during
fixHdfsOrphan operations
See the log
ERROR: Found inconsistency in table mob_table
14:19:06.946 [main] INFO org.apache.hbase.hbck1.HBaseFsck - Attempting to
handle orphan hdfs dir:
hdfs://hacluster/hbase/data/default/mob_table/156d2bf587ee03a7afc53cbf00ebce38
14:19:06.974 [main] WARN org.apache.hbase.hbck1.HBaseFsck - Problem reading
orphan file
HdfsNamedFileStatus{path=hdfs://hacluster/hbase/data/default/mob_table/156d2bf587ee03a7afc53cbf00ebce38/recovered.edits/4.seqid;
isDirectory=false; length=0; replication=3; blocksize=268435456;
modification_time=1598246777496; access_time=1598246777487; owner=hdfs;
group=hadoop; permission=rw-r--r--; isSymlink=false; hasAcl=false;
isEncrypted=false; isErasureCoded=false}, skipping
14:19:06.975 [main] INFO org.apache.hbase.hbck1.HBaseFsck - *Min max keys are
: [889091ff744069cab08dc605d162a8d3-6482,
9996535e07258a7bbfd8b132435c5962-1235)*
14:19:06.975 [main] INFO org.apache.hbase.hbck1.HBaseFsck - Creating new
region :
{ENCODED => 364959ef65602934940f627c7a303eaf, NAME =>
'mob_table,889091ff744069cab08dc605d162a8d3-6482,1598249946975.364959ef65602934940f627c7a303eaf.',
STARTKEY => '889091ff744069cab08dc605d162a8d3-6482', *ENDKEY =>
'9996535e07258a7bbfd8b132435c5962-1235*\x00'*}*
As you can see from log extra characters "\x00" are added In ENDKEY which is
wrong
was:
extra characters "\x00" are added in endkey while creating new region during
fixHdfsOrphan operations
See the log
ERROR: Found inconsistency in table mob_table
14:19:06.946 [main] INFO org.apache.hbase.hbck1.HBaseFsck - Attempting to
handle orphan hdfs dir:
hdfs://hacluster/hbase/data/default/mob_table/156d2bf587ee03a7afc53cbf00ebce38
14:19:06.974 [main] WARN org.apache.hbase.hbck1.HBaseFsck - Problem reading
orphan file
HdfsNamedFileStatus\{path=hdfs://hacluster/hbase/data/default/mob_table/156d2bf587ee03a7afc53cbf00ebce38/recovered.edits/4.seqid;
isDirectory=false; length=0; replication=3; blocksize=268435456;
modification_time=1598246777496; access_time=1598246777487; owner=hdfs;
group=hadoop; permission=rw-r--r--; isSymlink=false; hasAcl=false;
isEncrypted=false; isErasureCoded=false}, skipping
14:19:06.975 [main] INFO org.apache.hbase.hbck1.HBaseFsck - Min max keys are :
[889091ff744069cab08dc605d162a8d3-6482, 9996535e07258a7bbfd8b132435c5962-1235)
14:19:06.975 [main] INFO org.apache.hbase.hbck1.HBaseFsck - Creating new region
: {ENCODED => 364959ef65602934940f627c7a303eaf, NAME =>
'mob_table,889091ff744069cab08dc605d162a8d3-6482,1598249946975.364959ef65602934940f627c7a303eaf.',
STARTKEY => '889091ff744069cab08dc605d162a8d3-6482', ENDKEY =>
'9996535e07258a7bbfd8b132435c5962-1235*\x00'*}
As you can see from log extra characters "\x00" are added In ENDKEY which is
wrong
> HBCK2: extra characters "\x00" are added in endkey while creating new region
> during fixHdfsOrphan operations
> ------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-24951
> URL: https://issues.apache.org/jira/browse/HBASE-24951
> Project: HBase
> Issue Type: Bug
> Components: hbck2
> Affects Versions: 2.2.3
> Reporter: Ajeet Rai
> Priority: Minor
>
> extra characters "\x00" are added in endkey while creating new region during
> fixHdfsOrphan operations
> See the log
> ERROR: Found inconsistency in table mob_table
> 14:19:06.946 [main] INFO org.apache.hbase.hbck1.HBaseFsck - Attempting to
> handle orphan hdfs dir:
> hdfs://hacluster/hbase/data/default/mob_table/156d2bf587ee03a7afc53cbf00ebce38
> 14:19:06.974 [main] WARN org.apache.hbase.hbck1.HBaseFsck - Problem reading
> orphan file
> HdfsNamedFileStatus{path=hdfs://hacluster/hbase/data/default/mob_table/156d2bf587ee03a7afc53cbf00ebce38/recovered.edits/4.seqid;
> isDirectory=false; length=0; replication=3; blocksize=268435456;
> modification_time=1598246777496; access_time=1598246777487; owner=hdfs;
> group=hadoop; permission=rw-r--r--; isSymlink=false; hasAcl=false;
> isEncrypted=false; isErasureCoded=false}, skipping
> 14:19:06.975 [main] INFO org.apache.hbase.hbck1.HBaseFsck - *Min max keys
> are : [889091ff744069cab08dc605d162a8d3-6482,
> 9996535e07258a7bbfd8b132435c5962-1235)*
> 14:19:06.975 [main] INFO org.apache.hbase.hbck1.HBaseFsck - Creating new
> region :
> {ENCODED => 364959ef65602934940f627c7a303eaf, NAME =>
> 'mob_table,889091ff744069cab08dc605d162a8d3-6482,1598249946975.364959ef65602934940f627c7a303eaf.',
> STARTKEY => '889091ff744069cab08dc605d162a8d3-6482', *ENDKEY =>
> '9996535e07258a7bbfd8b132435c5962-1235*\x00'*}*
>
> As you can see from log extra characters "\x00" are added In ENDKEY which is
> wrong
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)