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

List and Map values incorrectly limited to 64k size

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 3.0.1, 3.1
    • Component/s: None
    • Labels:
      None
    • Severity:
      Low

      Description

      With the v3 native protocol, we switched from encoding collection element sizes with shorts to ints. However, in Lists.java and Maps.java, we still validate that list and map values are smaller than MAX_UNSIGNED_SHORT.

      Map keys and set elements are stored in the cell name, so they're implicitly limited to the cell name size limit of 64k. However, for non-frozen collections, this limitation should not apply, so we probably don't want to perform this check here for those either.

      The fix should include tests where we exceed the 64k limit for frozen and non-frozen collections. In the case of non-frozen lists and maps, we should verify that the 64k cell-name size limit is enforced in a friendly way.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                blerer Benjamin Lerer
                Reporter:
                thobbs Tom Hobbs
                Authors:
                Benjamin Lerer
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: