[SERVER-58898] Prevent writing to "local" db from waiting for writeConcern Created: 27/Jul/21  Updated: 29/Oct/23  Resolved: 03/Aug/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.3, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Moustafa Maher Assignee: Moustafa Maher
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-61790 Inserting to custom collection in "lo... Closed
Related
is related to SERVER-59077 Investigate: should we allow explicit... Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Backport Requested:
v5.0
Sprint: Repl 2021-08-09
Participants:

 Description   

We allow doing writes directly to secondaries if the writes are on the "local" db as this is not replicated.

When changing the default write concern to "majority", on writing to "local" on secondaries the write concern will be set to "majority" and nothing is preventing the code from waiting for this write-concern from being met.

1- So we need to add logic from preventing waiting for write-concern if we are writing to "local" db

2- add testing logic to cover it.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 10/Aug/21 ]

Author:

{'name': 'Moustafa Maher', 'email': 'm.maher@10gen.com', 'username': 'moustafamaher'}

Message: SERVER-58898 Prevent writing to local db from waiting for writeConcern
Branch: v5.0
https://github.com/mongodb/mongo/commit/bc0b19fd6df42983a3c265fe8c6015439c9878b2

Comment by Githook User [ 03/Aug/21 ]

Author:

{'name': 'Moustafa Maher', 'email': 'm.maher@10gen.com', 'username': 'moustafamaher'}

Message: SERVER-58898 Prevent writing to local db from waiting for writeConcern
Branch: master
https://github.com/mongodb/mongo/commit/687c40e14c367e06e318cb7a46d5f98669f03853

Generated at Thu Feb 08 05:45:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.