Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1953

client session tests causing failures on Travis

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0-rc0, 3.6.0
    • Component/s: Testing
    • Labels:
      None

      Description

      Observed here:
      https://travis-ci.org/github/mongodb/mongo-cxx-driver/jobs/703266901

      With logs:

      -------------------------------------------------------------------------------
      session
        pool
      -------------------------------------------------------------------------------
      /home/travis/build/mongodb/mongo-cxx-driver/src/mongocxx/test/client_session.cpp:125
      ...............................................................................
      /home/travis/build/mongodb/mongo-cxx-driver/src/mongocxx/test/client_session.cpp:137: FAILED:
        REQUIRE( session_c->id() == b_id )
      with expansion:
        { "id" : { "$binary" : { "base64": "FqitkZCWSPq4O5kMipwlRQ==", "subType" :
        "04" } } }
        ==
        {?}
      -------------------------------------------------------------------------------
      

      After CDRIVER-3322, libmongoc no longer pools unused sessions. A test in the C++ driver was relying on this behavior. The fix is to simply use the session before destroying it so it gets back onto the pool.

        Attachments

          Activity

            People

            Assignee:
            kevin.albertson Kevin Albertson
            Reporter:
            samantha.ritter Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: