-
Notifications
You must be signed in to change notification settings - Fork 245
DRIVERS-1915: Change stream support for point-in-time pre and post-images #1176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Introduces fullDocumentBeforeChange option. Tests for specifying "whenAvailable" and "required" for both fullDocument and fullDocumentBeforeChange (requires MongoDB 6.0+ with changeStreamPreAndPostImages enabled on the collection). Tests synced with mongodb/specifications#1176
Introduces fullDocumentBeforeChange option. Tests for specifying "whenAvailable" and "required" for both fullDocument and fullDocumentBeforeChange (requires MongoDB 6.0+ with changeStreamPreAndPostImages enabled on the collection). Tests synced with mongodb/specifications#1176
Introduces fullDocumentBeforeChange option. Tests for specifying "whenAvailable" and "required" for both fullDocument and fullDocumentBeforeChange (requires MongoDB 6.0+ with changeStreamPreAndPostImages enabled on the collection). Tests synced with mongodb/specifications#1176
Introduces fullDocumentBeforeChange option. Tests for specifying "whenAvailable" and "required" for both fullDocument and fullDocumentBeforeChange (requires MongoDB 6.0+ with changeStreamPreAndPostImages enabled on the collection). Intentionally omits mention of FULL_DOCUMENT_DEFAULT (related to PHPLIB-808) and FULL_DOCUMENT_BEFORE_CHANGE_OFF constants, since those redundantly specified default behavior. Tests synced with mongodb/specifications#1176
Introduces fullDocumentBeforeChange option. Tests for specifying "whenAvailable" and "required" for both fullDocument and fullDocumentBeforeChange (requires MongoDB 6.0+ with changeStreamPreAndPostImages enabled on the collection). Intentionally omits mention of FULL_DOCUMENT_DEFAULT (related to PHPLIB-808) and FULL_DOCUMENT_BEFORE_CHANGE_OFF constants, since those redundantly specified default behavior. Tests synced with mongodb/specifications#1176
source/change-streams/tests/unified/change-streams-pre_and_post_images.yml
Outdated
Show resolved
Hide resolved
source/change-streams/tests/unified/change-streams-pre_and_post_images.yml
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I only wonder if the file names should be change-streams-pre-and-post-images.*
instead of change-streams-pre_and_post_images
. The mix of hyphen and underscore seems nonstandard.
source/change-streams/tests/unified/change-streams-pre_and_post_images.yml
Show resolved
Hide resolved
|
||
runOnRequirements: | ||
- minServerVersion: "6.0.0" | ||
topologies: [ replicaset, sharded-replicaset, load-balanced ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the CI is failing because of this line... Not sure why, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking into this now. I just realized change-streams were never added to the Unified Test Format Makefile and just did so now. It validates locally, so I'll have to sort out how the CI task differs.
I based this on I object to all of the existing tests having |
Per DRIVERS-2231, drivers no longer send this value, but it is technically accepted (like "off" for fullDocumentBeforeChange).
- spec tests synced from mongodb/specifications#1176
- spec tests synced from mongodb/specifications#1176
https://jira.mongodb.org/browse/DRIVERS-1915
POC: mongodb/mongo-php-library#911
Note: testing may require starting mongod with
--setParameter featureFlagChangeStreamPreAndPostImages=true
if the "latest" server build does not include SERVER-52282.