From 342571498a89f7b7a54af6e5105cc77740bd18e6 Mon Sep 17 00:00:00 2001 From: ndimiduk Date: Tue, 18 Feb 2014 23:48:09 +0000 Subject: [PATCH] HBASE-10548 Correct commons-math dependency version git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1569565 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/hadoop/hbase/PerformanceEvaluation.java | 6 ++++-- pom.xml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java index 43ef7d02e77..3a4af674b57 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java @@ -1159,9 +1159,11 @@ public class PerformanceEvaluation extends Configured implements Tool { 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)); diff --git a/pom.xml b/pom.xml index a9afb29e604..0fb4dcb0b69 100644 --- a/pom.xml +++ b/pom.xml @@ -898,7 +898,7 @@ 2.4 2.6 1.1.3 - 2.2 + 2.1 3.2.0 3.2.1 3.1