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

Regression on Mongo.getReplicateStatus().getMaster()

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.13.0
    • API
    • None

    Description

      We migrated the Java driver version from 2.11.1 to 2.13 and a call to Mongo.getReplicateStatus().getMaster() does not return the ServerAddress anymore; instead we get null.

      This happens on MongoDB 2.6 with the Java driver version 2.13. Our client is configured like so:

      MongoClientOptions{description='null', connectionsPerHost=100, threadsAllowedToBlockForConnectionMultiplier=5, maxWaitTime=12000, connectTimeout=10000, socketTimeout=0, socketKeepAlive=false, autoConnectRetry=false, maxAutoConnectRetryTime=0, readPreference=primary, dbDecoderFactory=DefaultDBDecoder.DefaultFactory, dbEncoderFactory=DefaultDBEncoder.DefaultFactory, writeConcern=WriteConcern { "getlasterror" : 1} / (Continue on error? false), socketFactory=javax.net.DefaultSocketFactory@5efe3dfe, cursorFinalizerEnabled=true, alwaysUseMBeans=false, heartbeatFrequency=5000, minHeartbeatFrequency=500, heartbeatConnectTimeout=20000, heartbeatSocketTimeout=20000, heartbeatThreadCount=0, localThreshold=15, requiredReplicaSetName=null}
      

      Attachments

        1. MongoDB26RsConf.txt
          3 kB
        2. MongoDB26RsStatus.txt
          4 kB

        Activity

          People

            ross@mongodb.com Ross Lawley
            lucboudreau Luc Boudreau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: