Skip to content

GODRIVER-1726 Fix SDAM error handling for write concern errors #489

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 4 commits into from
Aug 25, 2020

Conversation

divjotarora
Copy link
Contributor

@divjotarora divjotarora commented Aug 21, 2020

I took this ticket as an opportunity to add some integration tests for SDAM error handling. They now ensure that we correctly process NodeIsRecovering and NotMaster errors correctly when they're in an ok:0 or writeConcernError document. Unfortunately, each test takes ~0.5 seconds to run because of minHeartbeatFrequency, but I still think they're worth having. Also, we don't have SDAM monitoring, so we can't actually assert that the server was marked Unknown, but by testing on both 4.0 and 4.2, we can assert that the server's connection pool was cleared, which is at least enough to ensure that we're correctly entering the SDAM error handling code path.

@divjotarora divjotarora merged commit b452636 into mongodb:master Aug 25, 2020
@divjotarora divjotarora deleted the godriver1726-sdam-wc-errors branch August 25, 2020 17:43
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.

3 participants