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

Removing the last item from a collection removes the entire row

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Not A Problem
    • None
    • None
    • None
    • Mac OS X Yosemite
      JDK 8u25

    • Low

    Description

      When removing the last item from a list or set (and I assume the same applies to maps), the entire row is deleted rather than just that last item.

      I've only tested this in cases where the collection column is the only non-PK column, but it is definitely a change between v2.0.5 and v2.0.6. I've looked through the 2.0.6 release notes and issues and can't find any item that might describe this, so I assume it's not an intended change. If such an issue exists, I've probably just missed it, so apologies in advance.

      I've created a very simple project to reproduce the issue. If you clone the repo and run it in two different modes (the README explains how to do this with preconfigured Maven profiles), you will see the tests that pass on v2.0.5 and fail on v2.0.6.

      Repo: https://github.com/stuartgunter/cassandra-2.0.6-bug

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stuartgunter Stuart Gunter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: