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

PBM-1307: Disallow WriteConcern for unacknowledged write operation #941

Merged
merged 2 commits into from
May 9, 2024

Conversation

boris-ilijic
Copy link
Member

@boris-ilijic boris-ilijic commented May 9, 2024

Fix for https://perconadev.atlassian.net/browse/PBM-1307

Validation for WriteConcern w=0 is added because PBM cannot operate in that mode.
If that value is specified within conn string, pbm-agent or pbm-cli will fail with following error:

Error: connect to mongodb: create mongo connection: invalid connection string option: WriteConcern without acknowledgment is not allowed (w: 0)

@boris-ilijic boris-ilijic requested a review from defbin as a code owner May 9, 2024 08:00
@boris-ilijic boris-ilijic merged commit dbd318b into dev May 9, 2024
23 of 27 checks passed
@boris-ilijic boris-ilijic deleted the PBM-1307-disallow-to-use-writeconcern-0 branch May 9, 2024 10:41
@defbin defbin modified the milestones: 2.6.0, 2.5.0 Aug 9, 2024
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