Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3746

SDAM integration tests failing on Valgrind variant

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.18.0, 1.17.3, 1.18.0-alpha
    • Affects Version/s: None
    • Component/s: None
    • None

      test-valgrind-latest-* tasks have been consistently failing since integration tests were added in CDRIVER-3535.

      The failures themselves seem inconsistent, and could be a result of a timing issue (in the test or implementation). Here is one such example:
      https://evergreen.mongodb.com/task/mongo_c_driver_valgrind_ubuntu_test_valgrind_latest_replica_set_auth_nosasl_openssl_23fd5f57ab3677a57c0acc4a341a33dc60073e3a_20_07_08_19_22_13

      [2020/07/10 01:43:52.100] Begin /server_discovery_and_monitoring/integration/isMaster-timeout, seed 954882979
      [2020/07/10 01:44:16.119] 2020/07/10 01:44:16.0119: [125008]:  WARNING:      cluster: Failed authentication to localhost:27018 (Cannot assemble command for invalidated server: connection timed out reading message length)
      [2020/07/10 01:44:16.124] Error in APM matching
      [2020/07/10 01:44:16.124] Full list of captured events: { }
      [2020/07/10 01:44:16.127] Full list of expectations: { "0" : { "command_started_event" : { "command" : { "insert" : "isMaster-timeout", "documents" : [ { "_id" : { "$numberInt" : "1" } }, { "_id" : { "$numberInt" : "2" } } ] }, "command_name" : "insert", "database_name" : "sdam-tests" } } }test error in: /data/mci/0072ec9fa07543f9e13412cdc3d3137c/mongoc/src/libmongoc/tests/json-test-monitoring.c 539:check_json_apm_events()
      [2020/07/10 01:44:16.128] expectation unmatched
      [2020/07/10 01:44:16.128] 	expected: { "command_started_event" : { "command" : { "insert" : "isMaster-timeout", "documents" : [ { "_id" : { "$numberInt" : "1" } }, { "_id" : { "$numberInt" : "2" } } ] }, "command_name" : "insert", "database_name" : "sdam-tests" } }
      [2020/07/10 01:44:16.139] ==125008==
      [2020/07/10 01:44:16.139] ==125008== Process terminating with default action of signal 6 (SIGABRT): dumping core
      [2020/07/10 01:44:16.139] ==125008==    at 0x644FF47: raise (raise.c:51)
      [2020/07/10 01:44:16.139] ==125008==    by 0x64518B0: abort (abort.c:79)
      [2020/07/10 01:44:16.139] ==125008==    by 0x3006B0: _test_error (TestSuite.c:92)
      [2020/07/10 01:44:16.139] ==125008==    by 0x18A3B0: check_json_apm_events (json-test-monitoring.c:537)
      [2020/07/10 01:44:16.139] ==125008==    by 0x2BE203: run_one_integration_test (test-mongoc-sdam.c:384)
      [2020/07/10 01:44:16.139] ==125008==    by 0x2BE58F: test_sdam_integration_cb (test-mongoc-sdam.c:433)
      [2020/07/10 01:44:16.139] ==125008==    by 0x30191D: TestSuite_RunTest (TestSuite.c:597)
      [2020/07/10 01:44:16.139] ==125008==    by 0x3021FA: TestSuite_RunSerial (TestSuite.c:868)
      [2020/07/10 01:44:16.139] ==125008==    by 0x302657: TestSuite_Run (TestSuite.c:972)
      [2020/07/10 01:44:16.139] ==125008==    by 0x1B5D74: main (test-libmongoc.c:2662)
      

      But other failures have different logs.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: