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 2023/06/07 18:57:04 UTC
[accumulo] branch main updated: Remove old (broken) shell fate test
This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push:
new b51bab16a2 Remove old (broken) shell fate test
b51bab16a2 is described below
commit b51bab16a20a16235b4dce155b29e0920acc3d6c
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Wed Jun 7 14:49:23 2023 -0400
Remove old (broken) shell fate test
As follow-up to #3456, remove the broken test in
`ShellServerIT.testFateCommandWithSlowCompaction()`
since the command it is testing was removed by that.
---
.../apache/accumulo/test/shell/ShellServerIT.java | 55 ----------------------
1 file changed, 55 deletions(-)
diff --git a/test/src/main/java/org/apache/accumulo/test/shell/ShellServerIT.java b/test/src/main/java/org/apache/accumulo/test/shell/ShellServerIT.java
index f1348d4d9e..a7a7953ec6 100644
--- a/test/src/main/java/org/apache/accumulo/test/shell/ShellServerIT.java
+++ b/test/src/main/java/org/apache/accumulo/test/shell/ShellServerIT.java
@@ -2088,59 +2088,4 @@ public class ShellServerIT extends SharedMiniClusterBase {
assertMatches(output, "(?sm).*^.*total[:]2[,]\\s+missing[:]0[,]\\s+extra[:]0.*$.*");
}
- @Test
- public void testFateCommandWithSlowCompaction() throws Exception {
- final String table = getUniqueNames(1)[0];
-
- String orgProps = System.getProperty("accumulo.properties");
-
- System.setProperty("accumulo.properties",
- "file://" + getCluster().getConfig().getAccumuloPropsFile().getCanonicalPath());
- // compact
- ts.exec("createtable " + table);
-
- // setup SlowIterator to sleep for 10 seconds
- ts.exec("config -t " + table
- + " -s table.iterator.majc.slow=1,org.apache.accumulo.test.functional.SlowIterator");
- ts.exec("config -t " + table + " -s table.iterator.majc.slow.opt.sleepTime=10000");
-
- // make two files
- ts.exec("insert a1 b c v_a1");
- ts.exec("insert a2 b c v_a2");
- ts.exec("flush -w");
- ts.exec("insert x1 b c v_x1");
- ts.exec("insert x2 b c v_x2");
- ts.exec("flush -w");
-
- // no transactions running
- ts.exec("fate -print", true, "0 transactions", true);
-
- // merge two files into one
- ts.exec("compact -t " + table);
- Thread.sleep(1_000);
- // start 2nd transaction
- ts.exec("compact -t " + table);
- Thread.sleep(3_000);
-
- // 2 compactions should be running so parse the output to get one of the transaction ids
- log.info("Calling fate print for table = {}", table);
- String result = ts.exec("fate -print", true, "txid:", true);
- String[] resultParts = result.split("txid: ");
- String[] parts = resultParts[1].split(" ");
- String txid = parts[0];
- // test filters
- ts.exec("fate -print -t IN_PROGRESS", true, "2 transactions", true);
- ts.exec("fate -print " + txid + " -t IN_PROGRESS", true, "1 transactions", true);
- ts.exec("fate -print " + txid + " -t FAILED", true, "0 transactions", true);
- ts.exec("fate -print -t NEW", true, "0 transactions", true);
- ts.exec("fate -print 1234", true, "0 transactions", true);
- ts.exec("fate -print FATE[aaa] 1 2 3", true, "0 transactions", true);
-
- ts.exec("deletetable -f " + table);
-
- if (orgProps != null) {
- System.setProperty("accumulo.properties", orgProps);
- }
- }
-
}