"TestBufferedBulkInserterInserts " in db unit test suite is flaky

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      occasionally fails with:

       [2014/11/25 11:25:11.787] 2014-11-25T11:25:11.787-0500 I QUERY    [conn4] command tools-test.$cmd command: dropDatabase { dropDatabase: 1 } keyUpdates:0 numYields:0  reslen:61 718ms
       [2014/11/25 11:25:11.787] Failures:
       [2014/11/25 11:25:11.787]   * /data/mci/shell/src/common/db/buffered_bulk_test.go
       [2014/11/25 11:25:11.787]   Line 35:
       [2014/11/25 11:25:11.787]   Expected: nil
       [2014/11/25 11:25:11.787]   Actual:   'error writing bulk insert: read tcp 127.0.0.1:27017: i/o timeout'
       [2014/11/25 11:25:11.787] 35 assertions thus far
       [2014/11/25 11:25:11.787] --- FAIL: TestBufferedBulkInserterInserts (24.18 seconds)
      

      It looks like in cases where dropping the DB takes a long time, the i/o timeout is triggered and an error is thrown. Probably needs to have socket timeout set to 0 somewhere.

            Assignee:
            Unassigned
            Reporter:
            Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: