hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yuanxinen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-10549) when there is a hole,LoadIncrementalHFiles will hung up in an infinite loop.
Date Mon, 17 Feb 2014 07:17:20 GMT

    [ https://issues.apache.org/jira/browse/HBASE-10549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13903010#comment-13903010
] 

yuanxinen commented on HBASE-10549:
-----------------------------------

---------------add check code-----------------------------------------------
    if (!(Bytes.compareTo(startEndKeys.getSecond()[idx], startEndKeys.getFirst()[idx + 1])
== 0)){
            throw new Exception("Find a inconsistenty in a table,please use hbck tool to fix
it first.");
    }
-----------------------------------------------------------------------------
    boolean lastKeyInRange =
        Bytes.compareTo(last, startEndKeys.getSecond()[idx]) < 0
            || Bytes.equals(startEndKeys.getSecond()[idx], HConstants.EMPTY_BYTE_ARRAY);
    if (!lastKeyInRange) {
      List<LoadQueueItem> lqis =
          this.splitStoreFile(item, table, startEndKeys.getFirst()[indexForCallable], startEndKeys
              .getSecond()[indexForCallable]);
      return lqis;
    }

> when there is a hole,LoadIncrementalHFiles will hung up in an infinite loop.
> ----------------------------------------------------------------------------
>
>                 Key: HBASE-10549
>                 URL: https://issues.apache.org/jira/browse/HBASE-10549
>             Project: HBase
>          Issue Type: Bug
>          Components: HFile
>    Affects Versions: 0.94.11
>            Reporter: yuanxinen
>




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message