Skip to content

GODRIVER-2136 Include LatencySelector in change stream server selector #720

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
merged 1 commit into from
Aug 30, 2021
Merged

GODRIVER-2136 Include LatencySelector in change stream server selector #720

merged 1 commit into from
Aug 30, 2021

Conversation

benjirewis
Copy link
Contributor

GODRIVER-2136

Modifies the selector for new ChangeStream instances in newChangeStream to be a CompositeSelector of a ReadPrefSelector and a LatencySelector. This should make it so change stream server selection (both in creation and resumption) will respect the Client's LocalThreshold value.

@benjirewis benjirewis requested a review from matthewdale August 24, 2021 17:12
@benjirewis
Copy link
Contributor Author

Let me know if you think I should add an integration test here. I wasn't quite sure how to test that localThresholdMS is respected in change stream creation/resumption.

@benjirewis benjirewis marked this pull request as ready for review August 24, 2021 17:12
Copy link
Collaborator

@matthewdale matthewdale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, pending passing of the Atlas Test.

As far as adding an integration test, I wasn't able to find any example of an integration test that asserts on the LatencySelector behavior, so I don't have an idea of how to do that either. I think it's fine without that integration test for now.

@benjirewis
Copy link
Contributor Author

The failing atlas test is due to expired certificates from Atlas. See GODRIVER-2128 and its dependency CLOUDP-97605.

@benjirewis benjirewis merged commit e142bb3 into mongodb:master Aug 30, 2021
@benjirewis benjirewis deleted the changeStreamSS.2136 branch August 30, 2021 16:40
faem pushed a commit to kubedb/mongo-go-driver that referenced this pull request Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants