HBASE-1483 HLog split loses track of edits
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@781865 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
64217c590b
commit
c9d309e5c3
|
@ -162,6 +162,7 @@ Release 0.20.0 - Unreleased
|
|||
becoming in-operational (Ryan Rawson via Stack)
|
||||
HBASE-1471 During cluster shutdown, deleting zookeeper regionserver nodes
|
||||
causes exceptions
|
||||
HBASE-1483 HLog split loses track of edits (Clint Morgan via Stack)
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1089 Add count of regions on filesystem to master UI; add percentage
|
||||
|
@ -299,6 +300,10 @@ Release 0.20.0 - Unreleased
|
|||
HBASE-1464 Add hbase.regionserver.logroll.period to hbase-default
|
||||
HBASE-1192 LRU-style map for the block cache (Jon Gray and Ryan Rawson
|
||||
via Stack)
|
||||
<<<<<<< .mine
|
||||
HBASE-1466 Binary keys are not first class citizens
|
||||
(Ryan Rawson via Stack)
|
||||
=======
|
||||
HBASE-1445 Add the ability to start a master from any machine
|
||||
HBASE-1474 Add zk attributes to list of attributes
|
||||
in master and regionserver UIs
|
||||
|
@ -308,6 +313,7 @@ Release 0.20.0 - Unreleased
|
|||
HBASE-1143 region count erratic in master UI
|
||||
(kill server hosting root or meta and see how count goes awry)....
|
||||
make sure you have a bunch of reions in there
|
||||
>>>>>>> .r781864
|
||||
|
||||
OPTIMIZATIONS
|
||||
HBASE-1412 Change values for delete column and column family in KeyValue
|
||||
|
|
|
@ -795,13 +795,15 @@ public class HLog implements HConstants, Syncable {
|
|||
// reports a zero length even if the file has been sync'd. Revisit if
|
||||
// HADOOP-4751 is committed.
|
||||
long length = logfiles[i].getLen();
|
||||
HLogKey key = new HLogKey();
|
||||
KeyValue val = new KeyValue();
|
||||
SequenceFile.Reader in = null;
|
||||
int count = 0;
|
||||
try {
|
||||
in = new SequenceFile.Reader(fs, logfiles[i].getPath(), conf);
|
||||
try {
|
||||
// Make the key and value new each time; otherwise same instance
|
||||
// is used over and over.
|
||||
HLogKey key = new HLogKey();
|
||||
KeyValue val = new KeyValue();
|
||||
while (in.next(key, val)) {
|
||||
byte [] regionName = key.getRegionName();
|
||||
LinkedList<HLogEntry> queue = logEntries.get(regionName);
|
||||
|
|
Loading…
Reference in New Issue