You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by nd...@apache.org on 2014/02/19 00:57:33 UTC

svn commit: r1569567 - in /hbase/branches/0.98: hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java pom.xml

Author: ndimiduk
Date: Tue Feb 18 23:57:32 2014
New Revision: 1569567

URL: http://svn.apache.org/r1569567
Log:
HBASE-10548 Correct commons-math dependency version

Modified:
    hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
    hbase/branches/0.98/pom.xml

Modified: hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java?rev=1569567&r1=1569566&r2=1569567&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java (original)
+++ hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java Tue Feb 18 23:57:32 2014
@@ -1158,9 +1158,11 @@ public class PerformanceEvaluation exten
     protected void testTakedown() throws IOException {
       super.testTakedown();
       if (this.reportLatency) {
-        DescriptiveStatistics ds;
         Arrays.sort(times);
-        ds = new DescriptiveStatistics(times);
+        DescriptiveStatistics ds = new DescriptiveStatistics();
+        for (double t : times) {
+          ds.addValue(t);
+        }
         LOG.info("randomRead latency log (ms), on " + times.length + " measures");
         LOG.info("99.9999% = " + ds.getPercentile(99.9999d));
         LOG.info(" 99.999% = " + ds.getPercentile(99.999d));

Modified: hbase/branches/0.98/pom.xml
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/pom.xml?rev=1569567&r1=1569566&r2=1569567&view=diff
==============================================================================
--- hbase/branches/0.98/pom.xml (original)
+++ hbase/branches/0.98/pom.xml Tue Feb 18 23:57:32 2014
@@ -889,7 +889,7 @@
     <commons-io.version>2.4</commons-io.version>
     <commons-lang.version>2.6</commons-lang.version>
     <commons-logging.version>1.1.1</commons-logging.version>
-    <commons-math.version>2.2</commons-math.version>
+    <commons-math.version>2.1</commons-math.version>
     <collections.version>3.2.1</collections.version>
     <httpclient.version>3.1</httpclient.version>
     <metrics-core.version>2.1.2</metrics-core.version>