-
Notifications
You must be signed in to change notification settings - Fork 16
REP-5317 Add destination change stream #53
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
Merged
tdq45gj
merged 38 commits into
mongodb-labs:main
from
tdq45gj:REP-5317-add-dst-change-stream
Dec 3, 2024
Merged
Changes from 26 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
351c94c
wip
tdq45gj 0f645f1
Merge branch 'main' into REP-5317-add-dst-change-stream
tdq45gj 53404bc
refactor
tdq45gj 24d3881
Update change_stream_test.go
tdq45gj d66f25e
Update change_stream_test.go
tdq45gj 9a081cc
Merge branch 'main' into REP-5317-add-dst-change-stream
tdq45gj 733220c
Update migration_verifier.go
tdq45gj 2ae4abc
Merge branch 'main' into REP-5317-add-dst-change-stream
tdq45gj 39af4e7
fix
tdq45gj 4ff9863
Update integration_test_suite.go
tdq45gj 16224b1
fix tests
tdq45gj 2d95686
Merge branch 'main' into REP-5317-add-dst-change-stream
tdq45gj a9cb0c1
Update change_stream.go
tdq45gj 5bf64f6
Felipe's review
tdq45gj 668e649
Merge branch 'main' into REP-5317-add-dst-change-stream
tdq45gj 743dd6a
Update change_stream_test.go
tdq45gj cc34be4
initialize nsmap
tdq45gj 4ba0eda
fix
tdq45gj b9d5f37
fix generational rechecking test
tdq45gj 9eed454
Add end-to-end test
tdq45gj 281afc0
wait for change event handler
tdq45gj c96a495
fix race condition in tests
tdq45gj e89d175
Update change_stream.go
tdq45gj f14962f
Update check.go
tdq45gj be93d05
wait for recheck docs creation
tdq45gj c1b7ead
fix
tdq45gj c119cb0
Update change_stream_test.go
tdq45gj e302d9d
Update change_stream.go
tdq45gj d15b020
refactors
tdq45gj ff0c7e9
Merge branch 'main' into REP-5317-add-dst-change-stream
tdq45gj e56dcbc
rename clusterType to whichCluster
tdq45gj c91eb0d
reorder controls in TestChangesOnDstBeforeSrc
tdq45gj faa2e24
Update migration_verifier_test.go
tdq45gj c71e9ef
Update change_stream_test.go
tdq45gj 18a4cb3
reduce log level
tdq45gj 3961b2d
Update change_stream_test.go
tdq45gj c2da8c4
change to private fields
tdq45gj e3e901c
Update migration_verifier_test.go
tdq45gj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why not errgroup.WithContext()?
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.
Also, why are the event handler goroutines in an errgroup while the event reader goroutines aren’t?
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.
Yeah,
errgroup.WithContext()seems better. The only reason for having handler goroutines in an errgroup is that we want to wait for them in theCheckDriverfunction. The change stream readers are currently waited through channels.