Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-471

Flaky connection in sharding integration tests

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 0.5.2
    • Component/s: Testing
    • None
    • Not Needed

      https://evergreen.mongodb.com/task/mongosh_darwin_test_8af92d1f33fbb479a1ba6190b28f1ecb7959e3e9_20_11_24_15_24_36

       

      [2020/11/24 15:32:23.385]   1 failing
      [2020/11/24 15:32:23.385]   1) Shard
      [2020/11/24 15:32:23.385]        integration
      [2020/11/24 15:32:23.385]          "before all" hook in "integration":
      [2020/11/24 15:32:23.385]      MongoError: Could not find host matching read preference { mode: "primary" } for set rs-shard0-0
      [2020/11/24 15:32:23.385]       at MessageStream.messageHandler (/data/mci/0c30e2eb62d7df0323e4ee7dbd3ad2ed/src/packages/service-provider-server/node_modules/mongodb/lib/cmap/connection.js:268:20)
      [2020/11/24 15:32:23.385]       at processIncomingData (/data/mci/0c30e2eb62d7df0323e4ee7dbd3ad2ed/src/packages/service-provider-server/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
      [2020/11/24 15:32:23.385]       at MessageStream._write (/data/mci/0c30e2eb62d7df0323e4ee7dbd3ad2ed/src/packages/service-provider-server/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
      [2020/11/24 15:32:23.385]       at doWrite (_stream_writable.js:403:12)
      [2020/11/24 15:32:23.385]       at writeOrBuffer (_stream_writable.js:387:5)
      [2020/11/24 15:32:23.385]       at MessageStream.Writable.write (_stream_writable.js:318:11)
      [2020/11/24 15:32:23.385]       at Socket.ondata (_stream_readable.js:716:22)
      [2020/11/24 15:32:23.385]       at addChunk (_stream_readable.js:295:12)
      [2020/11/24 15:32:23.385]       at readableAddChunk (_stream_readable.js:271:9)
      [2020/11/24 15:32:23.385]       at Socket.Readable.push (_stream_readable.js:212:10)
      [2020/11/24 15:32:23.385]       at TCP.onStreamRead (internal/stream_base_commons.js:186:23) 

      This may or may not be a driver issue.

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: