From 9c218f0b0450105568e633f2def6485122911fc8 Mon Sep 17 00:00:00 2001 From: Jean-Daniel Cryans Date: Fri, 3 Oct 2008 19:26:46 +0000 Subject: [PATCH] HBASE-912 PE is broken when other tables exist git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/branches/0.18@701500 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 286464ab266..2df2a8d6785 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -5,6 +5,7 @@ Release 0.18.1 - Unreleased BUG FIXES HBASE-891 HRS.validateValuesLength throws IOE, gets caught in the retries HBASE-906 [shell] Truncates output + HBASE-912 PE is broken when other tables exist Release 0.18.0 - September 21st, 2008 diff --git a/src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java b/src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java index 9ec2e859292..d05e9c2a12f 100644 --- a/src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java +++ b/src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java @@ -200,7 +200,7 @@ public class PerformanceEvaluation implements HConstants { if (extantTables.length > 0) { // Check to see if our table already exists. Print warning if it does. for (int i = 0; i < extantTables.length; i++) { - if (extantTables[0].equals(tableDescriptor)) { + if (extantTables[i].equals(tableDescriptor)) { LOG.warn("Table " + tableDescriptor + " already exists"); tableExists = true; break; @@ -701,4 +701,4 @@ public class PerformanceEvaluation implements HConstants { System.exit(new PerformanceEvaluation(c). doCommandLine(args)); } -} \ No newline at end of file +}