[SERVER-79046] The PreWriteFilter should be disabled if the mongod process is started with --shardsvr and in queryable backup mode Created: 18/Jul/23  Updated: 29/Oct/23  Resolved: 18/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.1.0-rc0, 6.0.8, 7.0.0-rc7
Fix Version/s: 7.1.0-rc0, 6.0.10, 7.0.2

Type: Bug Priority: Major - P3
Reporter: Sergi Mateo Bellido Assignee: Antonio Fuschetto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File repro.js    
Issue Links:
Backports
Depends
Problem/Incident
causes SERVER-80319 Test assumes replica set will be avai... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0, v6.0
Sprint: Sharding EMEA 2023-07-24, Sharding EMEA 2023-08-07, Sharding EMEA 2023-08-21
Participants:

 Description   

The PreWriteFilter should be disabled if the mongod process is started with --shardsvr and in queryable backup mode. Note that not doing that might imply performing shard version checks in unexpected situations, for example while performing oplog catch up during startup.

We have to refine this logic here.



 Comments   
Comment by Peter Vertenten [ 29/Aug/23 ]

Thanks!

Comment by Antonio Fuschetto [ 29/Aug/23 ]

peter.vertenten@mongodb.com, MongoDB Server versions 6.0.10 and 7.0.1 will also include this fix. Thanks.

Comment by Githook User [ 29/Aug/23 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-79046 Do not perform PreWrite filtering in standalone shards
Branch: v7.0
https://github.com/mongodb/mongo/commit/daa19b92ef15e9fb4e887f4b7b101ba55daea4e3

Comment by Githook User [ 29/Aug/23 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-79046 Do not perform PreWrite filtering in standalone shards
Branch: v6.0
https://github.com/mongodb/mongo/commit/5040dc8f6ce051f2b2498be0205a11ea5c52c587

Comment by Peter Vertenten [ 20/Aug/23 ]

Sounds great.

Comment by Antonio Fuschetto [ 19/Aug/23 ]

The plan is to backport this fix to 7.0 and 6.0 branches. Do you confirm this covers all CloudManager / OpsManager use cases?

Comment by Peter Vertenten [ 18/Aug/23 ]

antonio.fuschetto@mongodb.com

What mongod versions will this be backported to?

Cloudmanager / Opsmanager which use the queryable restore feature do not support quarterly versions for example.

Comment by Githook User [ 18/Aug/23 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-79046 Do not perform PreWrite filtering in standalone shards
Branch: master
https://github.com/mongodb/mongo/commit/2a6e7fd1b6262597bd1ef8886d4c8f128bc54580

Generated at Thu Feb 08 06:39:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.