You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Chang chen (JIRA)" <ji...@apache.org> on 2016/12/13 03:37:58 UTC
[jira] [Comment Edited] (HBASE-17295) The namespace table has two
regions
[ https://issues.apache.org/jira/browse/HBASE-17295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15744030#comment-15744030 ]
Chang chen edited comment on HBASE-17295 at 12/13/16 3:37 AM:
--------------------------------------------------------------
The latest namespace region was created half year ago, log was already rolled.
{code}
$ hadoop fs -ls /hbasedata/hbase-common/data/hbase/namespace/cb95abb94ed97849733d6a4d9c1d40aa
Found 3 items
-rw-r--r-- 3 hbase hbase 42 2016-02-26 12:30 /hbasedata/hbase-common/data/hbase/namespace/cb95abb94ed97849733d6a4d9c1d40aa/.regioninfo
{code}
Interesting, Master still balances these two regions, and hbck report:
{code}
ERROR: (region hbase:namespace,,1456460815614.cb95abb94ed97849733d6a4d9c1d40aa.) Multiple regions have the same startkey:
ERROR: (region hbase:namespace,,1437013955376.1f6a26f3018010b3753663711e441682.) Multiple regions have the same startkey:
ERROR: Found inconsistency in table hbase:namespace
{code}
was (Author: baibaichen):
The latest namespace region was created half year ago, log was already rolled.
{quote}
$ hadoop fs -ls /hbasedata/hbase-common/data/hbase/namespace/cb95abb94ed97849733d6a4d9c1d40aa
Found 3 items
-rw-r--r-- 3 hbase hbase 42 2016-02-26 12:30 /hbasedata/hbase-common/data/hbase/namespace/cb95abb94ed97849733d6a4d9c1d40aa/.regioninfo
{quote}
Interesting, Master still balances these two regions, and hbck report:
{code}
ERROR: (region hbase:namespace,,1456460815614.cb95abb94ed97849733d6a4d9c1d40aa.) Multiple regions have the same startkey:
ERROR: (region hbase:namespace,,1437013955376.1f6a26f3018010b3753663711e441682.) Multiple regions have the same startkey:
ERROR: Found inconsistency in table hbase:namespace
{code}
> The namespace table has two regions
> -----------------------------------
>
> Key: HBASE-17295
> URL: https://issues.apache.org/jira/browse/HBASE-17295
> Project: HBase
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: Chang chen
> Attachments: bug.PNG
>
>
> From the codes, hbase namespace meta table should not allowed to be split.
> {code:title=HRegion#checkSplit}
> public byte[] checkSplit() {
> // Can't split META
> if (this.getRegionInfo().isMetaTable() ||
> TableName.NAMESPACE_TABLE_NAME.equals(this.getRegionInfo().getTable())) {
> if (shouldForceSplit()) {
> LOG.warn("Cannot split meta region in HBase 0.20 and above");
> }
> return null;
> }
> //.....
> }
> {code}
> But recently, I see two namespace regions in our production deployment. It may be cased by restarting when cluster is in certain state.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)