[ https://issues.apache.org/jira/browse/HBASE-21594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16719937#comment-16719937 ]
ChenKai edited comment on HBASE-21594 at 12/13/18 9:04 AM: ----------------------------------------------------------- [~openinx] HBase version is 0.98.13-hadoop2, Phoenix version is 4.7.0-HBase-0.98. I write a unit test with hbase(branch-1.2), same problems, i'm not sure if hfile is incorrect? Thanks. was (Author: 514793...@qq.com): [~openinx] HBase version is 0.98.13-hadoop2, Phoenix version is 4.7.0-HBase-0.98. I write a unit test with hbase(branch-1.2), same problems. Thanks. > Requested block is out of range when reading hfile > -------------------------------------------------- > > Key: HBASE-21594 > URL: https://issues.apache.org/jira/browse/HBASE-21594 > Project: HBase > Issue Type: Bug > Components: HFile > Affects Versions: 0.98.10 > Reporter: ChenKai > Priority: Major > > My HFiles are generated by Spark HBaseBulkLoad. And then when i read a few of > them(or hbase do compact), i encounter the following exceptions. > > {code:java} > Exception in thread "main" java.io.IOException: Requested block is out of > range: 77329641, lastDataBlockOffset: 77329641, > trailer.getLoadOnOpenDataOffset: 77329641 > at > org.apache.hadoop.hbase.io.hfile.HFileReaderV2.readBlock(HFileReaderV2.java:396) > at > org.apache.hadoop.hbase.io.hfile.HFileReaderV2$AbstractScannerV2.readNextDataBlock(HFileReaderV2.java:734) > at > org.apache.hadoop.hbase.io.hfile.HFileReaderV2$ScannerV2.isNextBlock(HFileReaderV2.java:859) > at > org.apache.hadoop.hbase.io.hfile.HFileReaderV2$ScannerV2.positionForNextBlock(HFileReaderV2.java:854) > at > org.apache.hadoop.hbase.io.hfile.HFileReaderV2$ScannerV2._next(HFileReaderV2.java:871) > at > org.apache.hadoop.hbase.io.hfile.HFileReaderV2$ScannerV2.next(HFileReaderV2.java:891) > at io.patamon.hbase.test.read.TestHFileRead.main(TestHFileRead.java:49) > {code} > Looks like `lastDataBlockOffset` is equals to > `trailer.getLoadOnOpenDataOffset`. Could anyone help me? Thanks very much. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)