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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.8.3
    • Affects Version/s: 1.8.2
    • Component/s: 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@10gen.com Tyler Brock
            Reporter:
            brandon.black@10gen.com Brandon Black
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: