dcapwell commented on code in PR #4556:
URL: https://github.com/apache/cassandra/pull/4556#discussion_r2683669783
##########
src/java/org/apache/cassandra/cql3/statements/ModificationStatement.java:
##########
@@ -1145,6 +1150,74 @@ private UpdateParameters
makeUpdateParameters(Collection<ByteBuffer> keys,
lists);
}
+ private long calculateMutationSize(List<? extends IMutation> mutations)
+ {
+ long totalSize = 0;
+ for (IMutation mutation : mutations)
+ {
+ for (PartitionUpdate update : mutation.getPartitionUpdates())
+ {
+ totalSize += update.dataSize();
Review Comment:
is this the metric we actually want? this is how large a single mutation
is, but we won't warn that its writing to a partition thats "too large"?
--
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]