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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • 1.8.3
    • Affects Version/s: 1.8.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Tyler Brock (Inactive)
            Reporter:
            Brandon Black (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: