HBASE-1334 .META. region running into hfile errors
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@767332 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c671863d64
commit
a2fe91696b
|
@ -80,6 +80,7 @@ Release 0.20.0 - Unreleased
|
|||
HBASE-1330 binary keys broken on trunk (Ryan Rawson via Stack)
|
||||
HBASE-1332 regionserver carrying .META. starts sucking all cpu, drives load
|
||||
up - infinite loop? (Ryan Rawson via Stack)
|
||||
HBASE-1334 .META. region running into hfile errors (Ryan Rawson via Stack)
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1089 Add count of regions on filesystem to master UI; add percentage
|
||||
|
|
|
@ -45,7 +45,7 @@ public interface Scanner extends Closeable, Iterable<RowResult> {
|
|||
* @return Between zero and <param>nbRows</param> RowResults
|
||||
* @throws IOException
|
||||
*/
|
||||
public RowResult[] next(int nbRows) throws IOException;
|
||||
public RowResult [] next(int nbRows) throws IOException;
|
||||
|
||||
/**
|
||||
* Closes the scanner and releases any resources it has allocated
|
||||
|
|
|
@ -1167,7 +1167,9 @@ public class HFile {
|
|||
return false; // key is before the start of the file.
|
||||
|
||||
// Question: does this block begin with 'key'?
|
||||
if (this.reader.comparator.compare(reader.blockIndex.blockKeys[b], key) == 0) {
|
||||
if (this.reader.comparator.compare(reader.blockIndex.blockKeys[b],
|
||||
0, reader.blockIndex.blockKeys[b].length,
|
||||
key, offset, length) == 0) {
|
||||
// Ok the key we're interested in is the first of the block, so go back one.
|
||||
if (b == 0) {
|
||||
// we have a 'problem', the key we want is the first of the file.
|
||||
|
|
Loading…
Reference in New Issue