You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by el...@apache.org on 2013/11/20 06:39:46 UTC

[3/7] git commit: ACCUMULO-1908 Manually set filter on table and force deletetable.

ACCUMULO-1908 Manually set filter on table and force deletetable.

It appears that testPertableClasspath could never pass as expected, but I didn't investigate how it did sometimes.
Because FooFilter extends Filter, it should always hang waiting for the option to be input. Additionally, the
deletetable should have also hung indefinitely because it wouldn't get the necessary user delete confirmation.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/054a89e4
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/054a89e4
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/054a89e4

Branch: refs/heads/1.6.0-SNAPSHOT
Commit: 054a89e4b03532262877d6e0f7c07ddd332a7406
Parents: 2ad8a4f
Author: Josh Elser <el...@apache.org>
Authored: Tue Nov 19 23:21:10 2013 -0500
Committer: Josh Elser <el...@apache.org>
Committed: Tue Nov 19 23:21:10 2013 -0500

----------------------------------------------------------------------
 .../test/java/org/apache/accumulo/test/ShellServerTest.java   | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/054a89e4/test/src/test/java/org/apache/accumulo/test/ShellServerTest.java
----------------------------------------------------------------------
diff --git a/test/src/test/java/org/apache/accumulo/test/ShellServerTest.java b/test/src/test/java/org/apache/accumulo/test/ShellServerTest.java
index 45eec03..014342c 100644
--- a/test/src/test/java/org/apache/accumulo/test/ShellServerTest.java
+++ b/test/src/test/java/org/apache/accumulo/test/ShellServerTest.java
@@ -729,7 +729,10 @@ public class ShellServerTest {
     
     UtilWaitThread.sleep(200);
     
-    exec("setiter -scan -class org.apache.accumulo.test.FooFilter -p 10 -n foo", true);
+    // We can't use the setiter command as Filter implements OptionDescriber which 
+    // forces us to enter more input that I don't know how to input
+    // Instead, we can just manually set the property on the table.
+    exec("config -t ptc -s " + Property.TABLE_ITERATOR_PREFIX.getKey() + "scan.foo=10,org.apache.accumulo.test.FooFilter");
     
     exec("insert foo f q v", true);
     
@@ -747,7 +750,7 @@ public class ShellServerTest {
     exec("insert foo f q v", false);
     exec("insert ok foo q v", true);
     
-    exec("deletetable ptc", true);
+    exec("deletetable -f ptc", true);
     exec("config -d " + Property.VFS_CONTEXT_CLASSPATH_PROPERTY.getKey() + "cx1");
     
   }