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-2432 Improve panic handling in background processes #1471

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

prestonvasquez
Copy link
Collaborator

@prestonvasquez prestonvasquez commented Nov 14, 2023

GODRIVER-2432

Summary

Add a defer-recover function that logs unexpected failures encountered during topology maintenance.

Background & Motivation

Runtime fatals occurring in server maintenance methods are silently ignored. The rationale behind this is to prevent server maintenance, like updating a server, from disrupting a client's application. While there is currently no identified source for these fatals, it is presumed they may arise from the intricate locking system designed to facilitate concurrent updates. This pull request suggests the addition of a logging solution for these defer/recover blocks to learn more form clients, our unified spec test, and perhaps future telemetry.

@prestonvasquez prestonvasquez requested a review from a team as a code owner November 14, 2023 01:18
@prestonvasquez prestonvasquez requested review from qingyang-hu and removed request for a team November 14, 2023 01:18
Copy link
Contributor

API Change Report

No changes found!

Copy link
Collaborator

@qingyang-hu qingyang-hu left a comment

Choose a reason for hiding this comment

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

I'm glad these are removed.

@prestonvasquez prestonvasquez merged commit b12ee6d into mongodb:v1 Nov 16, 2023
1 check passed
@prestonvasquez prestonvasquez deleted the GODRIVER-2432 branch November 16, 2023 20:37
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