hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1379152 - in /hbase/trunk/hbase-server/src: main/java/org/apache/hadoop/hbase/regionserver/HRegion.java test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java
Date Thu, 30 Aug 2012 21:13:08 GMT
Author: stack
Date: Thu Aug 30 21:13:07 2012
New Revision: 1379152

URL: http://svn.apache.org/viewvc?rev=1379152&view=rev
Log:
HBASE-6689 HRegion.increment comment nits

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
    hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java?rev=1379152&r1=1379151&r2=1379152&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
Thu Aug 30 21:13:07 2012
@@ -4842,7 +4842,7 @@ public class HRegion implements HeapSize
                 now, Bytes.toBytes(amount));
             kvs.add(newKV);
 
-            // Append update to WAL
+            // Prepare WAL updates
             if (writeToWAL) {
               if (walEdits == null) {
                 walEdits = new WALEdit();

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java?rev=1379152&r1=1379151&r2=1379152&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java
(original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java
Thu Aug 30 21:13:07 2012
@@ -3662,7 +3662,7 @@ public class TestHRegion extends HBaseTe
     this.region = initHRegion(tableName, method, conf, family);
     final HRegion region = this.region;
     final AtomicBoolean incrementDone = new AtomicBoolean(false);
-    Runnable reader = new Runnable() {
+    Runnable flusher = new Runnable() {
       @Override
       public void run() {
         while (!incrementDone.get()) {
@@ -3680,7 +3680,7 @@ public class TestHRegion extends HBaseTe
     int incCounter = 100;
     long expected = threadNum * incCounter;
     Thread[] incrementers = new Thread[threadNum];
-    Thread flushThread = new Thread(reader);
+    Thread flushThread = new Thread(flusher);
     for (int i = 0; i < threadNum; i++) {
       incrementers[i] = new Thread(new Incrementer(this.region, incCounter));
       incrementers[i].start();



Mime
View raw message