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

Fix merging of rows in PartitionUpdate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.0 alpha 1
    • None
    • None
    • Normal

    Description

      Something's not right with RowUpdateBuilder when adding map or list entries. It breaks SELECT queries that follow afterwards, inflating the resultset, and duplicating the rows multiple times.

      It manifests when a table has more than one collection, and we update them both with more than one item.

      Here is a gist with minimal reproducible code: https://gist.github.com/iamaleksey/b6e9476fece029067729

      The bug is currently blocking CASSANDRA-6717 code for migration from old schema keyspace to a new one.

      P.S. I'm assuming that the bug is in RowUpdateBuilder because I couldn't reproduce in cqlsh. Could be that something's broken in the iterators, but trying to debug a cascade of them failed me.

      Attachments

        1. 9743.txt
          5 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            aleksey Aleksey Yeschenko
            Sylvain Lebresne
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: