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-2821 De-propagate unacknowledged sentinel error #1661

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

prestonvasquez
Copy link
Collaborator

@prestonvasquez prestonvasquez commented Jun 6, 2024

GODRIVER-2821

Summary

Do not return a sentinel error on unacknowledged writes. Instead, inform the user of unacknowledged writes as a bool on the returned result.

Background & Motivation

This change avoids complex sentinel errors when performing write operations.

@prestonvasquez prestonvasquez changed the title GODRIVER-2821 Extend write structs with Acknowledged GODRIVER-2821 De-propagate unacknowledged sentinel error Jun 6, 2024
@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the priority-3-low Low Priority PR for Review label Jun 6, 2024
Copy link

API Change Report

./mongo

compatible changes

BulkWriteResult.Acknowledged: added
DeleteResult.Acknowledged: added
InsertManyResult.Acknowledged: added
InsertOneResult.Acknowledged: added
RewrapManyDataKeyResult.Acknowledged: added
SingleResult.Acknowledged: added
UpdateResult.Acknowledged: added

@prestonvasquez prestonvasquez marked this pull request as ready for review June 27, 2024 18:15
matthewdale
matthewdale previously approved these changes Jun 28, 2024
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! 👍

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
2 participants