Skip to content

Commit

Permalink
Fix RegexGroupBalanceIT by hosting tablets
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmarion committed Dec 6, 2023
1 parent 8f88fbe commit ff325e8
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
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;
Expand All @@ -45,13 +46,11 @@
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
Expand Down Expand Up @@ -90,8 +89,8 @@ public void testBalancing() throws Exception {
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);
Expand Down

0 comments on commit ff325e8

Please sign in to comment.