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

MongoTimeoutException: Timedout after 10000 ms while waiting for a server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Done
    • Affects Version/s: 2.13.2
    • Fix Version/s: None
    • Component/s: GridFS
    • Labels:
    • Environment:
      java driver: 2.13.2
      mongodb server version: 3.0.7
      three nodes for Replica Set for GridFS.

      Description

      Envrionment: Three nodes for Replica Set, and used for GridFS.
      One of the Secondary node delay seriously´╝îso remove the node, stop instance and rm data, at last restart instance for sync data automatic.
      Sync data, time to begin 2018.1.25 11:00:00, and end 2018.1.29 14:38:00.It lasts 4 days. And each node data is 2.5T.
      But at 2018-01-29 14:26, it suddenly occured error. The deail message is:
      com.mongodb.MongoTimeoutException: Timedout after 10000 ms while waiting for a server that matches {serverSelectors=[ReadPreferenceServerSelector

      {readPreference=primary}

      , LatencyMinimizingServerSelector

      {acceptableLatencyDifference=15 ms}

      ]}. Client view of cluster state is {type=ReplicaSet, servers=[] at com.mongodb.BaseCluster.getServer(BaseCluster.java:82) at com.mongodb.DBTCPConnector.getServer(DBTCPConnector.java:664) at com.mongodb.DBTCPConnector.access$500(DBTCPConnector.java:40) at com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:513) at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:456) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:288) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:273) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66) at com.mongodb.DBCollection.findOne(DBCollection.java:940) at com.mongodb.DBCollection.findOne(DBCollection.java:914) at com.mongodb.DBCollection.findOne(DBCollection.java:858) at

      Please help me resolve the question. Thank you very much.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: