Java Driver
  1. Java Driver
  2. JAVA-244

MongoURI for Java Driver should support all speced options (e.g. w, fsync, etc)

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor - P4 Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: API
    • Labels:
      None
    • Backward Breaking:
      No
    • # Replies:
      4
    • Last comment by Customer:
      false

      Description

      The MongoURI format which the Java driver supports and is leveraged by the Hadoop driver should support the Options we define as valid for a Mongo URI in http://www.mongodb.org/display/DOCS/Connections

      We currently ignore the options on parse.

        Issue Links

          Activity

          Hide
          Brendan W. McAdams
          added a comment -

          Valid Java URI Options, first pass:

          maxPoolSize -> MongoOptions.connectionsPerHost
          minPoolSize -> <NO MAPPING>
          waitQueueMultiple -> MongoOptions.threadsAllowedToBlockForConnectionMultiplier
          waitQueueTimeoutMS -> MongoOptions.maxWaitTime
          connectTimeoutMS -> MongoOptions.connectTimeout
          socketTimeoutMS -> MongOptions.socketTimeout
          autoConnectRetry -> MongOptions.autoConnectRetry
          slaveOK -> MongoOptions.slaveOK
          safe -> MongoOptions.safe
          w -> MongoOptions.w
          wtimeout -> MongoOptions.wtimeout
          fsync -> MongOptions.fsync

          Currently , No way for Java driver to support speced options of connect=direct|replset or replicaset=name

          Show
          Brendan W. McAdams
          added a comment - Valid Java URI Options, first pass: maxPoolSize -> MongoOptions.connectionsPerHost minPoolSize -> <NO MAPPING> waitQueueMultiple -> MongoOptions.threadsAllowedToBlockForConnectionMultiplier waitQueueTimeoutMS -> MongoOptions.maxWaitTime connectTimeoutMS -> MongoOptions.connectTimeout socketTimeoutMS -> MongOptions.socketTimeout autoConnectRetry -> MongOptions.autoConnectRetry slaveOK -> MongoOptions.slaveOK safe -> MongoOptions.safe w -> MongoOptions.w wtimeout -> MongoOptions.wtimeout fsync -> MongOptions.fsync Currently , No way for Java driver to support speced options of connect=direct|replset or replicaset=name
          Hide
          auto
          added a comment -

          Author:

          {u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

          Message: JAVA-244

          Show
          auto
          added a comment - Author: {u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'} Message: JAVA-244 Added support for parsing URI Options into usable values Added w, fsync, etc to MongoOptions to allow setting from URI https://github.com/mongodb/mongo-java-driver/commit/000f4c51a8538b19cea46db50069973136a8478e
          Hide
          auto
          added a comment -

          Author:

          {u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

          Message: JAVA-244 Changed URI Options to match the new universal values
          https://github.com/mongodb/mongo-java-driver/commit/b05af1eba23ae4201862fac3c53168388185fe67

          Show
          auto
          added a comment - Author: {u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'} Message: JAVA-244 Changed URI Options to match the new universal values https://github.com/mongodb/mongo-java-driver/commit/b05af1eba23ae4201862fac3c53168388185fe67
          Hide
          auto
          added a comment -

          Author:

          {u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

          Message: JAVA-244 - Support for options including defined standard connection
          pool params. Unit testing of mixed args
          https://github.com/mongodb/mongo-java-driver/commit/1d4aba36129245ce878771cdd7d5edd523ce803f

          Show
          auto
          added a comment - Author: {u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'} Message: JAVA-244 - Support for options including defined standard connection pool params. Unit testing of mixed args https://github.com/mongodb/mongo-java-driver/commit/1d4aba36129245ce878771cdd7d5edd523ce803f

            People

            • Assignee:
              Brendan W. McAdams
              Reporter:
              Brendan W. McAdams
              Participants:
              Last commenter:
              Barrie Segal
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                3 years, 15 weeks, 1 day ago
                Date of 1st Reply: