Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-554

Runtime cache in the JRuby BSON extension is not thread-safe

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • 1.8.2
    • 1.8.3
    • None

    Description

      The runtime cache in the JRuby BSON extension is currently unsynchronized and declared as static variables leading to serious thread safety issues during BSON serialization.

      https://github.com/mongodb/mongo-ruby-driver/blob/master/ext/jbson/src/main/jbson/RubyBSONCallback.java#L32
      https://github.com/mongodb/mongo-ruby-driver/blob/master/ext/jbson/src/main/jbson/RubyBSONEncoder.java#L33

      Attachments

        Activity

          People

            tyler@10gen.com Tyler Brock
            brandon.black@10gen.com Brandon Black
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: