Fix 4.0 node sending a repair prepare message to a 3.x node breaking the connection

patch by Aleksey Yeschenko; reviewed by Marcus Eriksson for CASSANDRA-16542
This commit is contained in:
Aleksey Yeschenko 2021-03-26 16:20:01 +00:00
parent e031ed09a9
commit efe830e1f7
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,6 @@
4.0-beta5
* Fix 4.0 node sending a repair prepare message to a 3.x node breaking the connection
(CASSANDRA-16542)
* Removed synchronized modifier from StreamSession#onChannelClose to prevent deadlocking on flush (CASSANDRA-15892)
* Throw IOE in AbstractType.writeValue if value has wrong fixed length (CASSANDRA-16500)
* Execute background refreshing of auth caches on a dedicated executor (CASSANDRA-15177)

View File

@ -130,8 +130,6 @@ public class PrepareMessage extends RepairMessage
public long serializedSize(PrepareMessage message, int version)
{
Preconditions.checkArgument(version == MessagingService.current_version, MIXED_MODE_ERROR);
long size;
size = TypeSizes.sizeof(message.tableIds.size());
for (TableId tableId : message.tableIds)