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

JSON queries are not thread safe

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Severity:
      Critical

      Description

      org.apache.cassandra.cql3.Json uses a shared instance of JsonStringEncoder which is not thread safe (see 1), while JsonStringEncoder#getInstance() should be used (see 2).

      As a consequence, concurrent select JSON queries often produce wrong (sometimes unreadable) results.

      1. http://grepcode.com/file/repo1.maven.org/maven2/org.codehaus.jackson/jackson-core-asl/1.9.2/org/codehaus/jackson/io/JsonStringEncoder.java
      2. http://grepcode.com/file/repo1.maven.org/maven2/org.codehaus.jackson/jackson-core-asl/1.9.2/org/codehaus/jackson/io/JsonStringEncoder.java#JsonStringEncoder.getInstance%28%29

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              thobbs Tom Hobbs Assign to me
              Reporter:
              sbtourist Sergio Bossa
              Authors:
              Tom Hobbs
              Reviewers:
              Sergio Bossa

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment