HBASE-969 Won't when storefile > 2G.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@709519 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ea06419301
commit
ad3c964f42
|
@ -56,6 +56,7 @@ Release 0.19.0 - Unreleased
|
|||
HBASE-973 [doc] In getting started, make it clear that hbase needs to
|
||||
create its directory in hdfs
|
||||
HBASE-963 Fix the retries in HTable.flushCommit
|
||||
HBASE-969 Won't when storefile > 2G.
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-901 Add a limit to key length, check key and value length on client side
|
||||
|
|
|
@ -151,7 +151,7 @@ public class BlockFSInputStream extends FSInputStream {
|
|||
}
|
||||
|
||||
private synchronized void blockSeekTo(long target) throws IOException {
|
||||
int targetBlock = (int) (target / blockSize);
|
||||
long targetBlock = target/blockSize;
|
||||
long targetBlockStart = targetBlock * blockSize;
|
||||
long targetBlockEnd = Math.min(targetBlockStart + blockSize, fileLength) - 1;
|
||||
long blockLength = targetBlockEnd - targetBlockStart + 1;
|
||||
|
|
Loading…
Reference in New Issue