Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10897

Avoid building PartitionUpdate in toString()

    XMLWordPrintableJSON

Details

    • Low

    Description

      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.

      Attachments

        Activity

          People

            thobbs Tom Hobbs
            thobbs Tom Hobbs
            Tom Hobbs
            Benjamin Lerer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: