hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1079215 - /hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapreduce/task/reduce/ShuffleClientMetrics.java
Date Tue, 08 Mar 2011 05:56:55 GMT
Author: omalley
Date: Tue Mar  8 05:56:54 2011
New Revision: 1079215

URL: http://svn.apache.org/viewvc?rev=1079215&view=rev
Log:
commit 72123d8b2ef767434623be34ae8042fb912eb118
Author: Luke Lu <llu@yahoo-inc.com>
Date:   Thu Dec 9 13:34:32 2010 -0800

    Fix a findbugs warning

Modified:
    hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapreduce/task/reduce/ShuffleClientMetrics.java

Modified: hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapreduce/task/reduce/ShuffleClientMetrics.java
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapreduce/task/reduce/ShuffleClientMetrics.java?rev=1079215&r1=1079214&r2=1079215&view=diff
==============================================================================
--- hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapreduce/task/reduce/ShuffleClientMetrics.java
(original)
+++ hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapreduce/task/reduce/ShuffleClientMetrics.java
Tue Mar  8 05:56:54 2011
@@ -63,7 +63,7 @@ class ShuffleClientMetrics {
   public synchronized void threadFree() {
     --numThreadsBusy;
   }
-  @Metric float getFetchersBusyPercent() {
+  @Metric synchronized float getFetchersBusyPercent() {
     return numCopiers == 0 ? 0f : 100f * numThreadsBusy / numCopiers;
   }
 }



Mime
View raw message