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

dlmarion 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 7ee79949b8 Fix RegexGroupBalanceIT by hosting tablets (#4026)
7ee79949b8 is described below

commit 7ee79949b88a01dfd2fd133d267197ad7138d807
Author: Dave Marion <dlmar...@apache.org>
AuthorDate: Wed Dec 6 09:17:41 2023 -0500

    Fix RegexGroupBalanceIT by hosting tablets (#4026)
---
 .../org/apache/accumulo/test/functional/RegexGroupBalanceIT.java   | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/test/src/main/java/org/apache/accumulo/test/functional/RegexGroupBalanceIT.java
 
b/test/src/main/java/org/apache/accumulo/test/functional/RegexGroupBalanceIT.java
index b8147691d8..6dc48d1297 100644
--- 
a/test/src/main/java/org/apache/accumulo/test/functional/RegexGroupBalanceIT.java
+++ 
b/test/src/main/java/org/apache/accumulo/test/functional/RegexGroupBalanceIT.java
@@ -32,6 +32,7 @@ import org.apache.accumulo.core.client.AccumuloClient;
 import org.apache.accumulo.core.client.Scanner;
 import org.apache.accumulo.core.client.TableNotFoundException;
 import org.apache.accumulo.core.client.admin.NewTableConfiguration;
+import org.apache.accumulo.core.client.admin.TabletHostingGoal;
 import org.apache.accumulo.core.conf.Property;
 import org.apache.accumulo.core.data.Key;
 import org.apache.accumulo.core.data.TableId;
@@ -45,13 +46,11 @@ import 
org.apache.accumulo.core.spi.balancer.RegexGroupBalancer;
 import org.apache.accumulo.miniclusterImpl.MiniAccumuloConfigImpl;
 import org.apache.commons.lang3.mutable.MutableInt;
 import org.apache.hadoop.io.Text;
-import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 
 import com.google.common.collect.HashBasedTable;
 import com.google.common.collect.Table;
 
-@Disabled // ELASTICITY_TODO
 public class RegexGroupBalanceIT extends ConfigurableMacBase {
 
   @Override
@@ -90,8 +89,8 @@ public class RegexGroupBalanceIT extends ConfigurableMacBase {
       props.put(RegexGroupBalancer.WAIT_TIME_PROPERTY, "50ms");
       props.put(Property.TABLE_LOAD_BALANCER.getKey(), 
RegexGroupBalancer.class.getName());
 
-      client.tableOperations().create(tablename,
-          new NewTableConfiguration().setProperties(props).withSplits(splits));
+      client.tableOperations().create(tablename, new 
NewTableConfiguration().setProperties(props)
+          
.withSplits(splits).withInitialHostingGoal(TabletHostingGoal.ALWAYS));
 
       while (true) {
         Thread.sleep(250);

Reply via email to