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

Invalid UTF-8 keys [for legacy OPP] should cause exceptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7 beta 1
    • None
    • None

    Description

      Our current method for decoding UTF-8 data in OrderPreservingPartitioner and CollatingOrderPreservingPartitioner will silently decode invalid UTF-8 data. This may also be a problem UTF8Type.

      Instead, we should probably throw an exception, since bad UTF-8 data means either user error or corruption.

      Attachments

        1. 0001-Initial-fixes-to-utf-decoding.patch
          4 kB
          Nick Bailey
        2. 0002-Better-Unit-Testing.patch
          1 kB
          Nick Bailey

        Issue Links

          Activity

            People

              nickmbailey Nick Bailey
              stuhood Stu Hood
              Nick Bailey
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: