Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-18334

Rewrite 'transport error' exceptions in DBCollection.runCommand to old error to prevent test breakage

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.3
    • Affects Version/s: 3.1.2
    • Component/s: Shell
    • Labels:
    • Fully Compatible
    • ALL
    • 0

      The regression test for SERVER-17671 (initial_sync_unsupported_auth_schema.js) can fail with a 'transport error' during reInitiate(). This occurs when DBClientInterface::findN fails to construct a cursor due to an aborted node.

      2015-05-05T01:35:10.734-0400 E QUERY    Error: DBClientBase::findN: transport error: 127.0.0.1:31002 ns: admin.$cmd query: { ismaster: 1.0 }
          at DB.runCommand (src/mongo/shell/db.js:112:29)
          at src/mongo/shell/replsettest.js:358:55
          at Function.assert.soon (src/mongo/shell/assert.js:183:17)
          at ReplSetTest.awaitSecondaryNodes (src/mongo/shell/replsettest.js:351:10)
          at ReplSetTest.initiate (src/mongo/shell/replsettest.js:460:10)
          at ReplSetTest.reInitiate (src/mongo/shell/replsettest.js:475:10)
          at checkedReInitiate (/srv/10gen/mci-exec/mci/shell/src/jstests/replsets/initial_sync_unsupported_auth_schema.js:6:13)
          at testInitialSyncAbortsWithUnsupportedAuthSchema (/srv/10gen/mci-exec/mci/shell/src/jstests/replsets/initial_sync_unsupported_auth_schema.js:40:5)
          at /srv/10gen/mci-exec/mci/shell/src/jstests/replsets/initial_sync_unsupported_auth_schema.js:91:1 at /srv/10gen/mci-exec/mci/shell/src/jstests/replsets/initial_sync_unsupported_auth_schema.js:16
      

            Assignee:
            adam.midvidy Adam Midvidy
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: