commit a1f15e421d56470940fd448addeaf96bee307459 Author: Todd Lipcon Date: Tue Apr 20 19:47:42 2010 -0700 HBASE-2476. Fix case where HLog sequence number was incremented in the wrong spot diff --git src/java/org/apache/hadoop/hbase/regionserver/HLog.java src/java/org/apache/hadoop/hbase/regionserver/HLog.java index 088bf36..3cd44f8 100644 --- src/java/org/apache/hadoop/hbase/regionserver/HLog.java +++ src/java/org/apache/hadoop/hbase/regionserver/HLog.java @@ -704,9 +704,9 @@ public class HLog implements HConstants, Syncable { if (this.closed) { throw new IOException("Cannot append; log is closed"); } - long seqNum = obtainSeqNum(); synchronized (this.updateLock) { + long seqNum = obtainSeqNum(); // The 'lastSeqWritten' map holds the sequence number of the oldest // write for each region (i.e. the first edit added to the particular // memstore). . When the cache is flushed, the entry for the