You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Tyler Hobbs (JIRA)" <ji...@apache.org> on 2015/12/17 17:52:46 UTC

[jira] [Updated] (CASSANDRA-10897) Avoid building PartitionUpdate in toString()

     [ https://issues.apache.org/jira/browse/CASSANDRA-10897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tyler Hobbs updated CASSANDRA-10897:
------------------------------------
    Priority: Minor  (was: Major)

> 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
>            Priority: Minor
>             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)