adelapena commented on code in PR #2469:
URL: https://github.com/apache/cassandra/pull/2469#discussion_r1254559713
##########
src/java/org/apache/cassandra/db/marshal/VectorType.java:
##########
@@ -352,10 +352,10 @@ private void check(List<?> values)
}
}
- private static <V> void checkConsumedFully(V buffer, ValueAccessor<V>
accessor, int offset)
+ private <V> void checkConsumedFully(V buffer, ValueAccessor<V> accessor,
int offset)
{
if (!accessor.isEmptyFromOffset(buffer, offset))
- throw new MarshalException("Unexpected extraneous bytes after
vector value");
+ throw new MarshalException("Unexpected extraneous bytes after " +
asCQL3Type() + " value");
Review Comment:
I'm not sure I see a lot of value in printing the specific size of the
remaining bytes, and we don't do it in similar methods, but I have added it
nevertheless.
--
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]