[
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)