You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by li...@apache.org on 2012/11/22 01:02:55 UTC

svn commit: r1412372 - /hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/client/HTableMultiplexer.java

Author: liyin
Date: Thu Nov 22 00:02:54 2012
New Revision: 1412372

URL: http://svn.apache.org/viewvc?rev=1412372&view=rev
Log:
[HBASE-5776] Reset the currentProcessingPutCount in HTableMultiplexer correctly

Author: liyintang

Summary: Reset the currentProcessingPutCount in HTableMultiplexer after the logging.

Test Plan: Tested

Reviewers: kannan, aaiyer, vinodv

Reviewed By: aaiyer

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D636718

Task ID: 1196817

Modified:
    hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/client/HTableMultiplexer.java

Modified: hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/client/HTableMultiplexer.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/client/HTableMultiplexer.java?rev=1412372&r1=1412371&r2=1412372&view=diff
==============================================================================
--- hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/client/HTableMultiplexer.java (original)
+++ hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/client/HTableMultiplexer.java Thu Nov 22 00:02:54 2012
@@ -533,9 +533,6 @@ public class HTableMultiplexer {
             // Update the totalFailedCount
             this.totalFailedPutCount.addAndGet(failedCount);
             
-            // Reset the current processing put count
-            currentProcessingPutCount.set(0);
-
             elapsed = System.currentTimeMillis() - start;
             // Update latency counters
             averageLatency.add(elapsed);
@@ -550,6 +547,9 @@ public class HTableMultiplexer {
                   + " and " + failedCount + " failed"
                   + ", latency for this send: " + elapsed);
             }
+            
+            // Reset the current processing put count
+            currentProcessingPutCount.set(0);
           }
 
           // Sleep for a while