[CXX-2084] Unskip "$changeStream must be the first stage in a change stream pipeline sent to the server" Created: 27/Jul/20  Updated: 27/Oct/23  Resolved: 15/Aug/22

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Ezra Chung
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CXX-2025 $changeStream must be the first stage... Closed
is related to CXX-2239 Convert change stream spec tests to u... Closed

 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



 Comments   
Comment by Ezra Chung [ 15/Aug/22 ]

Superceded by CXX-2239.

Generated at Wed Feb 07 22:04:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.