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

client session tests causing failures on Travis

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

      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.

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

              Created:
              Updated:
              Resolved: