Skip to content
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

GODRIVER-3035 Publish TopologyDescriptionChangedEvent on topology close. #2002

Merged
merged 4 commits into from
Apr 7, 2025

Conversation

qingyang-hu
Copy link
Collaborator

@qingyang-hu qingyang-hu commented Mar 28, 2025

GODRIVER-3035

Summary

Publish TopologyDescriptionChangedEvent on topology close.

Stacked on the top of #1964

Also updated spec tests for GODRIVER-2967

Background & Motivation

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the priority-3-low Low Priority PR for Review label Mar 28, 2025
Copy link
Contributor

API Change Report

No changes found!

@qingyang-hu qingyang-hu marked this pull request as ready for review March 28, 2025 19:19
@@ -488,7 +497,27 @@ func getNextTopologyDescriptionChangedEvent(
return nil, nil, errors.New("no topology description changed event published")
}

return events[0], events[:1], nil
return events[0], events[1:], nil
Copy link
Member

Choose a reason for hiding this comment

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

Were these tests not running correctly? Do you know why this wasn't causing an error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We didn't have multiple events previously.

@alcaeus alcaeus removed the request for review from matthewdale April 7, 2025 14:44
@qingyang-hu qingyang-hu merged commit cd295b6 into mongodb:master Apr 7, 2025
33 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low Low Priority PR for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants