You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2019/07/16 22:03:33 UTC

[accumulo-testing] branch master updated: Fix #88 incorrect argument array indexes (#95)

This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/accumulo-testing.git


The following commit(s) were added to refs/heads/master by this push:
     new 5a0ac28  Fix #88 incorrect argument array indexes (#95)
5a0ac28 is described below

commit 5a0ac28a89fc4ed9fa7e0cdf633f9d065a6a0cbb
Author: Laura Schanno <lb...@gmail.com>
AuthorDate: Tue Jul 16 18:03:29 2019 -0400

    Fix #88 incorrect argument array indexes (#95)
    
    Update reference to correct position in array for the table name.
---
 .../accumulo/testing/randomwalk/sequential/MapRedVerify.java      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/accumulo/testing/randomwalk/sequential/MapRedVerify.java b/src/main/java/org/apache/accumulo/testing/randomwalk/sequential/MapRedVerify.java
index 39a27fb..db17deb 100644
--- a/src/main/java/org/apache/accumulo/testing/randomwalk/sequential/MapRedVerify.java
+++ b/src/main/java/org/apache/accumulo/testing/randomwalk/sequential/MapRedVerify.java
@@ -38,14 +38,14 @@ public class MapRedVerify extends Test {
     String[] args = new String[3];
     args[0] = env.getClientPropsPath();
     args[1] = state.getString("seqTableName");
-    args[2] = args[2] + "_MR";
+    args[2] = args[1] + "_MR";
 
     if (ToolRunner.run(env.getHadoopConfiguration(), new MapRedVerifyTool(), args) != 0) {
       log.error("Failed to run map/red verify");
       return;
     }
 
-    Scanner outputScanner = env.getAccumuloClient().createScanner(args[5], Authorizations.EMPTY);
+    Scanner outputScanner = env.getAccumuloClient().createScanner(args[2], Authorizations.EMPTY);
     outputScanner.setRange(new Range());
 
     int count = 0;
@@ -63,8 +63,8 @@ public class MapRedVerify extends Test {
       log.error("Gaps in output");
     }
 
-    log.debug("Dropping table: " + args[5]);
+    log.debug("Dropping table: " + args[2]);
     AccumuloClient client = env.getAccumuloClient();
-    client.tableOperations().delete(args[5]);
+    client.tableOperations().delete(args[2]);
   }
 }