dcapwell commented on code in PR #3954:
URL: https://github.com/apache/cassandra/pull/3954#discussion_r1985835132
##########
src/java/org/apache/cassandra/service/accord/AccordSerializers.java:
##########
@@ -232,41 +201,45 @@ public Clustering<?> deserialize(DataInputPlus in, int
version) throws IOExcepti
}
@Override
- public long serializedSize(Clustering<?> clustering, int version)
+ public long serializedSize(Clustering<?> clustering)
{
return computeSerializedSize(clustering);
}
private <V> long computeSerializedSize(Clustering<V> clustering)
{
- int size = sizeof(true) + sizeofUnsignedVInt(clustering.size());
Review Comment:
this was a bug found by this refactor. When we "embed" the bytes we were
not validating size == written like we do in networking; when you add that
validation you found this was failing
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]