mirror of https://github.com/apache/cassandra
ninja: skip tests using unsupported operations
This commit is contained in:
parent
9d1ccb9901
commit
3d8f81c4e2
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue