ninja: skip tests using unsupported operations

This commit is contained in:
Blake Eggleston 2026-01-29 10:12:20 -08:00
parent 9d1ccb9901
commit 3d8f81c4e2
3 changed files with 13 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import java.io.IOException;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import org.junit.Ignore;
import org.junit.Test;
import org.apache.cassandra.distributed.Cluster;
@ -29,6 +30,7 @@ import org.apache.cassandra.distributed.api.Feature;
import org.apache.cassandra.distributed.api.IInstanceConfig;
import org.apache.cassandra.distributed.api.IInvokableInstance;
import org.apache.cassandra.distributed.shared.NetworkTopology;
import org.apache.cassandra.distributed.test.tracking.MutationTrackingUtils;
import org.apache.cassandra.tcm.Epoch;
import org.apache.cassandra.tcm.transformations.PrepareMove;
import org.apache.cassandra.utils.Pair;
@ -44,6 +46,7 @@ import static org.apache.cassandra.distributed.test.TransientRangeMovementTest.a
import static org.apache.cassandra.distributed.test.TransientRangeMovementTest.localStrs;
import static org.apache.cassandra.distributed.test.TransientRangeMovementTest.populate;
@Ignore(MutationTrackingUtils.IgnoreReasons.NO_RANGE_MOVEMENTS)
@SuppressWarnings("unchecked")
public class TransientRangeMovement2Test extends TestBaseImpl
{

View File

@ -30,6 +30,7 @@ import java.util.concurrent.ExecutionException;
import java.util.function.Function;
import com.google.common.collect.Sets;
import org.junit.Ignore;
import org.junit.Test;
import org.apache.cassandra.distributed.Cluster;
@ -39,6 +40,7 @@ import org.apache.cassandra.distributed.api.IInstanceConfig;
import org.apache.cassandra.distributed.api.IInvokableInstance;
import org.apache.cassandra.distributed.api.TokenSupplier;
import org.apache.cassandra.distributed.shared.NetworkTopology;
import org.apache.cassandra.distributed.test.tracking.MutationTrackingUtils;
import org.apache.cassandra.tcm.ClusterMetadata;
import org.apache.cassandra.tcm.Epoch;
import org.apache.cassandra.tcm.transformations.PrepareLeave;
@ -58,6 +60,7 @@ import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
@Ignore(MutationTrackingUtils.IgnoreReasons.NO_RANGE_MOVEMENTS)
@SuppressWarnings("unchecked")
public class TransientRangeMovementTest extends TestBaseImpl
{

View File

@ -56,6 +56,13 @@ public class MutationTrackingUtils
private static final Logger logger = LoggerFactory.getLogger(MutationTrackingUtils.class);
private static final int VERSION = MessagingService.current_version;
public static class IgnoreReasons
{
public static final String NO_RANGE_MOVEMENTS = "NO_RANGE_MOVEMENTS";
}
public static byte[] encodeId(MutationId id)
{
int size = Ints.checkedCast(MutationId.serializer.serializedSize(id, VERSION));