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

Support sessions when connected to a standalone server

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.12.7, 4.1.0
    • Affects Version/s: 3.12.4
    • Component/s: Session Management
    • None
    • Environment:
      MongoDB 3.6.17 standalone. Java driver 3.12.4.
    • Minor Change

      Customer developers use MongoDB 3.6 inside a docker container which is derived from an image with standalone configuration.  They are upgrading their Java web services to use sessions.  This entails switching from using legacy APIs to new APIs found in the Uber driver 3.12.4.  When they run their automated unit tests they receive the error...

      com.mongodb.MongoClientException: Sessions are not supported by the MongoDB cluster to which this client is connected

      They are concerned they need to change their DevOps flows to accommodate new MongoDB features, such as sessions.  Discussions with jeff.yemin@gmail.com on Slack indicate a standalone db supports sessions (but with limited functionality).  The driver, on the other hand, blocks the interaction. 

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            barron.anderson@mongodb.com Barron Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: