Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-202

Hang when calling conn.database_names() during initialSyncOplogApplication

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      pymongo-1.9-py2.4-linux-x86_64.egg
    • # Replies:
      10
    • Last comment by Customer:
      false

      Description

      The client hangs when you call conn.database_names() whilst a replica set member is doing initialSyncOplogApplication

      >>> import pymongo
      >>> conn = pymongo.connection.Connection('localhost', 27018, slave_okay=True)
      >>> print conn.database_names()

      rs.status()
      ...

      { "_id" : 2, "name" : "rs3c:27018", "health" : 1, "state" : 3, "stateStr" : "RECOVERING", "self" : true }

      ,

      Log output:
      Fri Jan 28 14:58:00 [rs_sync] replSet initialSyncOplogApplication 5100000
      Fri Jan 28 14:58:23 [rs_sync] replSet initialSyncOplogApplication 5200000

        Issue Links

          Activity

          Hide
          behackett Bernie Hackett added a comment -

          I'm going to do more testing but I'm curious, have you seen this with newer mongod versions?

          Show
          behackett Bernie Hackett added a comment - I'm going to do more testing but I'm curious, have you seen this with newer mongod versions?
          Hide
          boxedice David Mytton added a comment -

          I think it's the same on 1.8.1 but I've not specifically tested it and wasn't watching when we last did a resync.

          Show
          boxedice David Mytton added a comment - I think it's the same on 1.8.1 but I've not specifically tested it and wasn't watching when we last did a resync.
          Hide
          behackett Bernie Hackett added a comment -

          Ah, the problem happens for me at the end of the sync when mongod creates the indexes. Both pymongo and mongo shell block on 'listDatabases' until the indexes are created. I'll see if there is a server bug for this and open one if there isn't.

          Show
          behackett Bernie Hackett added a comment - Ah, the problem happens for me at the end of the sync when mongod creates the indexes. Both pymongo and mongo shell block on 'listDatabases' until the indexes are created. I'll see if there is a server bug for this and open one if there isn't.
          Hide
          behackett Bernie Hackett added a comment -

          This looks like SERVER-2771 to me.

          Show
          behackett Bernie Hackett added a comment - This looks like SERVER-2771 to me.
          Hide
          behackett Bernie Hackett added a comment -

          Closing this won't fix since there isn't anything to do in the Python driver.

          Show
          behackett Bernie Hackett added a comment - Closing this won't fix since there isn't anything to do in the Python driver.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                5 years, 45 weeks, 4 days ago
                Date of 1st Reply: