You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by kt...@apache.org on 2024/01/18 21:03:31 UTC
(accumulo) branch elasticity updated: fixes intermittent failure in DeleteEverythingIT (#4171)
This is an automated email from the ASF dual-hosted git repository.
kturner pushed a commit to branch elasticity
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/elasticity by this push:
new a19cfee5b6 fixes intermittent failure in DeleteEverythingIT (#4171)
a19cfee5b6 is described below
commit a19cfee5b643afdb2fc36efd963b766f4800164c
Author: Keith Turner <kt...@apache.org>
AuthorDate: Thu Jan 18 16:03:25 2024 -0500
fixes intermittent failure in DeleteEverythingIT (#4171)
---
.../java/org/apache/accumulo/test/functional/DeleteEverythingIT.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/src/main/java/org/apache/accumulo/test/functional/DeleteEverythingIT.java b/test/src/main/java/org/apache/accumulo/test/functional/DeleteEverythingIT.java
index f2465fde41..5df68c32f7 100644
--- a/test/src/main/java/org/apache/accumulo/test/functional/DeleteEverythingIT.java
+++ b/test/src/main/java/org/apache/accumulo/test/functional/DeleteEverythingIT.java
@@ -18,7 +18,6 @@
*/
package org.apache.accumulo.test.functional;
-import static java.util.concurrent.TimeUnit.SECONDS;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.time.Duration;
@@ -34,6 +33,7 @@ import org.apache.accumulo.core.data.Range;
import org.apache.accumulo.core.security.Authorizations;
import org.apache.accumulo.harness.AccumuloClusterHarness;
import org.apache.accumulo.miniclusterImpl.MiniAccumuloConfigImpl;
+import org.apache.accumulo.test.util.Wait;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.Text;
import org.junit.jupiter.api.Test;
@@ -78,7 +78,7 @@ public class DeleteEverythingIT extends AccumuloClusterHarness {
c.tableOperations().flush(tableName, null, null, true);
c.tableOperations().setProperty(tableName, Property.TABLE_MAJC_RATIO.getKey(), "1.0");
- Thread.sleep(SECONDS.toMillis(4));
+ Wait.waitFor(() -> FunctionalTestUtils.countRFiles(c, tableName) == 0);
FunctionalTestUtils.checkRFiles(c, tableName, 1, 1, 0, 0);