You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/06/03 19:56:57 UTC

[GitHub] [accumulo] milleruntime commented on pull request #2215: Remove the use of SiteConfiguration from FateCommand

milleruntime commented on PR #2215:
URL: https://github.com/apache/accumulo/pull/2215#issuecomment-1146313851

   In my attempts to try and create a test for #2754 I added this test to `ShellServerIT`:
   <pre>
   @Test
     public void testFateCommandWithSlowCompaction() throws Exception {
       final String table = getUniqueNames(1)[0];
   
       // compact
       ts.exec("createtable " + table);
   
       String tableId = getTableId(table);
   
       // make two files
       ts.exec("insert a b c d");
       ts.exec("flush -w");
       ts.exec("insert x y z v");
       ts.exec("flush -w");
       int oldCount = countFiles(tableId);
   
       // 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");
   
       // merge two files into one
       ts.exec("compact -t " + table);
   
       // compaction should still be running
       //assertFalse(countFiles(tableId) < oldCount);
   
       log.info("Calling fate print for table = {}", table);
       ts.exec("fate -print", true, "txid:", true);
   
       ts.exec("deletetable -f " + table);
     }
   </pre>
   
   This test will usually fail on main but on this branch it passes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org