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

Unskip "$changeStream must be the first stage in a change stream pipeline sent to the server"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Gone away
    • None
    • None
    • None
    • None

    Description

      Removing the test skips introduced in CXX-2025 resulted in local test failures.

      The test fails with a segmentation fault:

      > ./cmake-build/src/mongocxx/test/test_change_stream_specs --section change-streams.json
       
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      test_change_stream_specs is a Catch v2.10.2 host application.
      Run with -? for options
       
      -------------------------------------------------------------------------------
      Change stream spec tests
        change-streams.json
        $changeStream must be the first stage in a change stream pipeline sent to the
        server
      -------------------------------------------------------------------------------
      ../src/mongocxx/test/spec/change_stream.cpp:83
      ...............................................................................
       
      ../src/mongocxx/test/spec/change_stream.cpp:83: FAILED:
        {Unknown expression after the reported line}
      due to a fatal error condition:
        checking for path from environment variable: CHANGE_STREAM_TESTS_PATH
        Test path: /Users/kevinalbertson/code/mongo-cxx-driver/data/change_stream/
        change-streams.json
        SIGSEGV - Segmentation violation signal
       
      ===============================================================================
      test cases: 1 | 1 failed
      assertions: 6 | 5 passed | 1 failed
       
      Segmentation fault: 11
      

      Debugging indicates this occurs when throwing an exception:
      https://github.com/mongodb/mongo-cxx-driver/blob/feda529e73cba24efc46df33bbb553712f5b0944/src/mongocxx/private/change_stream.hh#L93

      Attachments

        Issue Links

          Activity

            People

              ezra.chung@mongodb.com Ezra Chung
              kevin.albertson@mongodb.com Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: