> ranges = ImmutableList.of();
- if (version >= MessagingService.VERSION_51)
+ if (version >= MessagingService.VERSION_60)
{
TableMetadata tableMetadata = Schema.instance.getTableMetadata(tableId);
IPartitioner p = tableMetadata != null ? tableMetadata.partitioner : IPartitioner.global();
@@ -124,7 +124,7 @@ public class StreamSummary implements Serializable
long size = summary.tableId.serializedSize();
size += TypeSizes.sizeof(summary.files);
size += TypeSizes.sizeof(summary.totalSize);
- if (version >= MessagingService.VERSION_51)
+ if (version >= MessagingService.VERSION_60)
size += CollectionSerializers.serializedCollectionSize(summary.ranges, version, Range.rangeSerializer);
return size;
}
diff --git a/src/java/org/apache/cassandra/tcm/log/SystemKeyspaceStorage.java b/src/java/org/apache/cassandra/tcm/log/SystemKeyspaceStorage.java
index d1c4e8e57c..fa259496c7 100644
--- a/src/java/org/apache/cassandra/tcm/log/SystemKeyspaceStorage.java
+++ b/src/java/org/apache/cassandra/tcm/log/SystemKeyspaceStorage.java
@@ -50,7 +50,7 @@ public class SystemKeyspaceStorage implements LogStorage
* If you make any changes to the tables below, make sure to increment the
* generation and document your change here.
*
- * gen 0: original definition in 5.1
+ * gen 0: original definition in 6.0
*/
public static final long GENERATION = 0;
diff --git a/src/java/org/apache/cassandra/tcm/membership/Directory.java b/src/java/org/apache/cassandra/tcm/membership/Directory.java
index c0c4d7a4df..8c7942a1fd 100644
--- a/src/java/org/apache/cassandra/tcm/membership/Directory.java
+++ b/src/java/org/apache/cassandra/tcm/membership/Directory.java
@@ -559,7 +559,7 @@ public class Directory implements MetadataValue
else
{
out.writeBoolean(true);
- UUIDSerializer.serializer.serialize(node.hostId, out, MessagingService.VERSION_51);
+ UUIDSerializer.serializer.serialize(node.hostId, out, MessagingService.VERSION_60);
}
}
@@ -572,7 +572,7 @@ public class Directory implements MetadataValue
NodeState state = NodeState.values()[in.readInt()];
NodeVersion nodeVersion = NodeVersion.serializer.deserialize(in, version);
boolean hasHostId = in.readBoolean();
- UUID hostId = hasHostId ? UUIDSerializer.serializer.deserialize(in, MessagingService.VERSION_51) : null;
+ UUID hostId = hasHostId ? UUIDSerializer.serializer.deserialize(in, MessagingService.VERSION_60) : null;
return new Node(id, addresses, location, state, nodeVersion, hostId);
}
@@ -587,7 +587,7 @@ public class Directory implements MetadataValue
size += NodeVersion.serializer.serializedSize(node.version, version);
size += TypeSizes.BOOL_SIZE;
if (node.hostId != null)
- size += UUIDSerializer.serializer.serializedSize(node.hostId, MessagingService.VERSION_51);
+ size += UUIDSerializer.serializer.serializedSize(node.hostId, MessagingService.VERSION_60);
return size;
}
}
diff --git a/test/data/config/version=5.1-alpha1.yml b/test/data/config/version=6.0-alpha1.yml
similarity index 100%
rename from test/data/config/version=5.1-alpha1.yml
rename to test/data/config/version=6.0-alpha1.yml
diff --git a/test/distributed/org/apache/cassandra/distributed/impl/InstanceConfig.java b/test/distributed/org/apache/cassandra/distributed/impl/InstanceConfig.java
index 9c8065e6e4..e16320823e 100644
--- a/test/distributed/org/apache/cassandra/distributed/impl/InstanceConfig.java
+++ b/test/distributed/org/apache/cassandra/distributed/impl/InstanceConfig.java
@@ -365,7 +365,7 @@ public class InstanceConfig implements IInstanceConfig
{
// Versions before 4.0 need to set 'seed_provider' without specifying the port
// Versions before 5.0 need to set 'endpoint_snitch', not initial_location_provider + node_proximity
- if (version.compareTo(UpgradeTestBase.v51) >= 0)
+ if (version.compareTo(UpgradeTestBase.v60) >= 0)
return this;
InstanceConfig config = new InstanceConfig(this);
diff --git a/test/distributed/org/apache/cassandra/distributed/upgrade/ClusterMetadataUpgradeHibernateTest.java b/test/distributed/org/apache/cassandra/distributed/upgrade/ClusterMetadataUpgradeHibernateTest.java
index 35c108193a..a19978dd52 100644
--- a/test/distributed/org/apache/cassandra/distributed/upgrade/ClusterMetadataUpgradeHibernateTest.java
+++ b/test/distributed/org/apache/cassandra/distributed/upgrade/ClusterMetadataUpgradeHibernateTest.java
@@ -54,7 +54,7 @@ public class ClusterMetadataUpgradeHibernateTest extends UpgradeTestBase
.runAfterClusterUpgrade((cluster) -> {
// manually upgrade node3 to be able to keep join_ring=false
cluster.get(3).shutdown().get();
- cluster.get(3).setVersion(Versions.find().getLatest(v51));
+ cluster.get(3).setVersion(Versions.find().getLatest(v60));
assertTrue(hibernating(cluster.get(1), "127.0.0.3"));
withProperty(CassandraRelevantProperties.JOIN_RING, false, () -> cluster.get(3).startup());
cluster.forEach(i -> checkPlacements(i, true));
diff --git a/test/distributed/org/apache/cassandra/distributed/upgrade/ClusterMetadataUpgradeJoinRingTest.java b/test/distributed/org/apache/cassandra/distributed/upgrade/ClusterMetadataUpgradeJoinRingTest.java
index 76a9696cb5..33e5132888 100644
--- a/test/distributed/org/apache/cassandra/distributed/upgrade/ClusterMetadataUpgradeJoinRingTest.java
+++ b/test/distributed/org/apache/cassandra/distributed/upgrade/ClusterMetadataUpgradeJoinRingTest.java
@@ -67,7 +67,7 @@ public class ClusterMetadataUpgradeJoinRingTest extends UpgradeTestBase
// node4 not upgraded yet - should be allowed to vote despite being join_ring=false:
cluster.get(1).nodetoolResult("cms", "initialize").asserts().failure();
cluster.get(4).shutdown().get();
- cluster.get(4).setVersion(Versions.find().getLatest(v51));
+ cluster.get(4).setVersion(Versions.find().getLatest(v60));
withProperty(CassandraRelevantProperties.JOIN_RING, false, () -> cluster.get(4).startup());
checkGossipinfo(cluster, false);
checkPlacements(cluster.get(1), "127.0.0.4", false);
diff --git a/test/distributed/org/apache/cassandra/distributed/upgrade/UpgradeTestBase.java b/test/distributed/org/apache/cassandra/distributed/upgrade/UpgradeTestBase.java
index f7e4f8a5d7..7fb41b843f 100644
--- a/test/distributed/org/apache/cassandra/distributed/upgrade/UpgradeTestBase.java
+++ b/test/distributed/org/apache/cassandra/distributed/upgrade/UpgradeTestBase.java
@@ -99,15 +99,15 @@ public class UpgradeTestBase extends DistributedTestBase
public static final Semver v41 = new Semver("4.1-alpha1", SemverType.LOOSE);
public static final Semver v42 = new Semver("4.2-alpha1", SemverType.LOOSE);
public static final Semver v50 = new Semver("5.0-alpha1", SemverType.LOOSE);
- public static final Semver v51 = new Semver("5.1-alpha1", SemverType.LOOSE);
+ public static final Semver v60 = new Semver("6.0-alpha1", SemverType.LOOSE);
protected static final SimpleGraph SUPPORTED_UPGRADE_PATHS = new SimpleGraph.Builder()
.addEdge(v40, v41)
.addEdge(v40, v50)
- .addEdge(v40, v51)
+ .addEdge(v40, v60)
.addEdge(v41, v50)
- .addEdge(v41, v51)
- .addEdge(v50, v51)
+ .addEdge(v41, v60)
+ .addEdge(v50, v60)
.build();
// the last is always the current
diff --git a/test/unit/org/apache/cassandra/AbstractSerializationsTester.java b/test/unit/org/apache/cassandra/AbstractSerializationsTester.java
index 171507a973..2509f7e83a 100644
--- a/test/unit/org/apache/cassandra/AbstractSerializationsTester.java
+++ b/test/unit/org/apache/cassandra/AbstractSerializationsTester.java
@@ -42,7 +42,7 @@ public class AbstractSerializationsTester
put("3.0", MessagingService.VERSION_30);
put("4.0", MessagingService.VERSION_40);
put("5.0", MessagingService.VERSION_50);
- put("5.1", MessagingService.VERSION_51);
+ put("5.1", MessagingService.VERSION_60);
}};
protected static final boolean EXECUTE_WRITES = TEST_SERIALIZATION_WRITES.getBoolean();
diff --git a/test/unit/org/apache/cassandra/config/ConfigCompatibilityTest.java b/test/unit/org/apache/cassandra/config/ConfigCompatibilityTest.java
index eb249da15e..e8794092d4 100644
--- a/test/unit/org/apache/cassandra/config/ConfigCompatibilityTest.java
+++ b/test/unit/org/apache/cassandra/config/ConfigCompatibilityTest.java
@@ -170,9 +170,9 @@ public class ConfigCompatibilityTest
}
@Test
- public void diff_5_1() throws IOException
+ public void diff_6_0() throws IOException
{
- diff(TEST_DIR + "/version=5.1-alpha1.yml", ImmutableSet.builder()
+ diff(TEST_DIR + "/version=6.0-alpha1.yml", ImmutableSet.builder()
.build(), ImmutableSet.of());
}
diff --git a/test/unit/org/apache/cassandra/db/filter/IndexHintsTest.java b/test/unit/org/apache/cassandra/db/filter/IndexHintsTest.java
index 95d793acef..4a8a2c2848 100644
--- a/test/unit/org/apache/cassandra/db/filter/IndexHintsTest.java
+++ b/test/unit/org/apache/cassandra/db/filter/IndexHintsTest.java
@@ -451,11 +451,11 @@ public class IndexHintsTest extends CQLTester
{
// ...with a version that supports index hints
DataOutputBuffer out = new DataOutputBuffer();
- ReadCommand.serializer.serialize(command, out, MessagingService.VERSION_51);
- Assertions.assertThat(ReadCommand.serializer.serializedSize(command, MessagingService.VERSION_51))
+ ReadCommand.serializer.serialize(command, out, MessagingService.VERSION_60);
+ Assertions.assertThat(ReadCommand.serializer.serializedSize(command, MessagingService.VERSION_60))
.isEqualTo(out.buffer().remaining());
DataInputBuffer in = new DataInputBuffer(out.buffer(), true);
- command = ReadCommand.serializer.deserialize(in, MessagingService.VERSION_51);
+ command = ReadCommand.serializer.deserialize(in, MessagingService.VERSION_60);
actualHints = command.rowFilter().indexHints;
Assertions.assertThat(actualHints).isEqualTo(expectedHints);
@@ -1110,7 +1110,7 @@ public class IndexHintsTest extends CQLTester
try (DataOutputBuffer out = new DataOutputBuffer())
{
IndexHints hints = IndexHints.create(indexes, null);
- Assertions.assertThatThrownBy(() -> IndexHints.serializer.serialize(hints, out, MessagingService.VERSION_51))
+ Assertions.assertThatThrownBy(() -> IndexHints.serializer.serialize(hints, out, MessagingService.VERSION_60))
.isInstanceOf(AssertionError.class)
.hasMessageContaining(TOO_MANY_INDEXES_ERROR + indexes.size());
}
@@ -1119,7 +1119,7 @@ public class IndexHintsTest extends CQLTester
try (DataOutputBuffer out = new DataOutputBuffer())
{
IndexHints hints = IndexHints.create(null, indexes);
- Assertions.assertThatThrownBy(() -> IndexHints.serializer.serialize(hints, out, MessagingService.VERSION_51))
+ Assertions.assertThatThrownBy(() -> IndexHints.serializer.serialize(hints, out, MessagingService.VERSION_60))
.isInstanceOf(AssertionError.class)
.hasMessageContaining(TOO_MANY_INDEXES_ERROR + indexes.size());
}
diff --git a/test/unit/org/apache/cassandra/net/MessageTest.java b/test/unit/org/apache/cassandra/net/MessageTest.java
index 15d062e1a7..1455cdf0c9 100644
--- a/test/unit/org/apache/cassandra/net/MessageTest.java
+++ b/test/unit/org/apache/cassandra/net/MessageTest.java
@@ -50,7 +50,7 @@ import static com.google.common.base.Throwables.getStackTraceAsString;
import static org.apache.cassandra.exceptions.RemoteExceptionTest.normalizeThrowable;
import static org.apache.cassandra.net.Message.serializer;
import static org.apache.cassandra.net.MessagingService.VERSION_40;
-import static org.apache.cassandra.net.MessagingService.VERSION_51;
+import static org.apache.cassandra.net.MessagingService.VERSION_60;
import static org.apache.cassandra.net.NoPayload.noPayload;
import static org.apache.cassandra.net.ParamType.RESPOND_TO;
import static org.apache.cassandra.net.ParamType.TRACE_SESSION;
@@ -342,7 +342,7 @@ public class MessageTest
RequestFailure reason1 = (RequestFailure)msg1.payload;
RequestFailure reason2 = (RequestFailure)msg2.payload;
assertEquals(reason1.reason, reason2.reason);
- if (version >= VERSION_51)
+ if (version >= VERSION_60)
{
if (reason1.failure == null)
assertNull(reason2.failure);