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

keith-turner 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 50e4d13e03 fixes hanging test in CompactionIT (#6667)
50e4d13e03 is described below

commit 50e4d13e030dbcb3e30f15ccef3ea56c5c721b81
Author: Keith Turner <[email protected]>
AuthorDate: Mon Nov 23 15:54:41 2026 -0500

    fixes hanging test in CompactionIT (#6667)
    
    After changes in #6653, an improperly configured compaction service for
    system compactions would also prevent user compactions from running.
    This change caused a test to hang.  The test was attempting prevent
    system compactions by configuring them incorrectly. Updated the test to
    prevent system compactions while using correct config.
---
 .../apache/accumulo/test/functional/CompactionIT.java  | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git 
a/test/src/main/java/org/apache/accumulo/test/functional/CompactionIT.java 
b/test/src/main/java/org/apache/accumulo/test/functional/CompactionIT.java
index 000ffd26e0..8997e97b03 100644
--- a/test/src/main/java/org/apache/accumulo/test/functional/CompactionIT.java
+++ b/test/src/main/java/org/apache/accumulo/test/functional/CompactionIT.java
@@ -714,6 +714,17 @@ public class CompactionIT extends CompactionITBase {
     }
   }
 
+  public static class NoopPlanner implements CompactionPlanner {
+    @Override
+    public void init(InitParameters params) {}
+
+    @Override
+    public CompactionPlan makePlan(PlanningParameters params) {
+      // always return a plan with zero jobs
+      return params.createPlanBuilder().build();
+    }
+  }
+
   @Test
   public void testGetSelectedFilesForCompaction() throws Exception {
 
@@ -724,10 +735,15 @@ public class CompactionIT extends CompactionITBase {
     
getCluster().getClusterControl().stopAllServers(ServerType.GARBAGE_COLLECTOR);
 
     try (AccumuloClient client = 
Accumulo.newClient().from(getClientProps()).build()) {
+      client.instanceOperations().modifyProperties(propsMap -> {
+        propsMap.put(Property.COMPACTION_SERVICE_PREFIX.getKey() + 
"noop.planner",
+            NoopPlanner.class.getName());
+      });
+
       Map<String,String> props = new HashMap<>();
       props.put(Property.TABLE_FILE_COMPRESSION_TYPE.getKey(), "none");
       // This is done to avoid system compactions - we want to do all the 
compactions ourselves
-      props.put("table.compaction.dispatcher.opts.service.system", 
"nonexitant");
+      props.put("table.compaction.dispatcher.opts.service.system", "noop");
       NewTableConfiguration ntc = new 
NewTableConfiguration().setProperties(props);
       client.tableOperations().create(tableName, ntc);
 

Reply via email to