Tyler Hobbs created CASSANDRA-10897:
---------------------------------------
Summary: Avoid building PartitionUpdate in toString()
Key: CASSANDRA-10897
URL: https://issues.apache.org/jira/browse/CASSANDRA-10897
Project: Cassandra
Issue Type: Bug
Components: Coordination
Reporter: Tyler Hobbs
Assignee: Tyler Hobbs
Fix For: 3.0.x, 3.x
In {{AbstractBTreePartition.toString()}} (which {{PartitionUpdate}} extends),
we iterate over the rows in the partition. This triggers {{maybeBuild()}} in
the {{PartitionUpdate}}. If the {{PartitionUpdate}} gets updated after the
{{toString()}} call, it will result in an {{IllegalStateException}} with the
message "An update should not be written again once it has been read".
As a result, logging or using a debugger can trigger spurious errors, which
makes debugging difficult or impossible.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)