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"

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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

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

              Created:
              Updated:
              Resolved: