Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4856

Ensure ObjectId uniqueness when using GraalVM

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: GraalVM
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      A customer stumbled over duplicate errors caused by duplicate ObjectIds which were generated on different Servers, while using GraalVM.  

      It looked like the SecureRandom implementation did generate deterministic values rather than non  deterministic ones.  

      Add a native-image.properties to bson and include Args = --initialize-at-run-time=org.bson.types.ObjectId
      Refs: https://www.graalvm.org/latest/reference-manual/native-image/dynamic-features/JCASecurityServices/#securerandom

            Assignee:
            maxim.katcharov@mongodb.com Maxim Katcharov
            Reporter:
            kai.orend@mongodb.com Kai Orend
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: