[SERVER-54585] Unable to run `findAndModify` against the Config server collections Created: 17/Feb/21  Updated: 29/Oct/23  Resolved: 19/Feb/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.9.0, 4.4.5

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: PM-1965-Cleanup
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Sharding 2021-02-22
Participants:
Linked BF Score: 45

 Description   

Currently the Config server doesn't allow commands which contain shardVersion or databaseVersion, because it is not really configured to act as a Shard (SERVER-51070). However, the findAndModify command attaches an UNSHARDED version unconditionally and because of this it is not possible to run findAndModify against the Config server.



 Comments   
Comment by Githook User [ 03/Mar/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-54585 Add jstest for findAndModify against admin/config
Branch: master
https://github.com/mongodb/mongo/commit/f759d69c172b87445950bc8932da3e60505e2e6e

Comment by Githook User [ 22/Feb/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-54585 Enable running `findAndModify` against the Config server collections

(cherry picked from commit a40e23d8613ad123e26112a61e26963909f1fa07)
Branch: v4.4
https://github.com/mongodb/mongo/commit/83e535beb0ae4089a4f7bfb2418f3be56803d7ef

Comment by Githook User [ 19/Feb/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-54585 Enable running `findAndModify` against the Config server collections
Branch: master
https://github.com/mongodb/mongo/commit/a40e23d8613ad123e26112a61e26963909f1fa07

Comment by Githook User [ 18/Feb/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-54585 Move support for `findAndModify` to the write_ops utilities

... also clean up the include files.
Branch: master
https://github.com/mongodb/mongo/commit/8711e20292978dd942e346b64829152922b7a7b1

Comment by Githook User [ 18/Feb/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-54585 Move support for `findAndModify` to the write_ops utilities

... also clean up the include files.
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/c2923d27a9bf945cb115ee8e0f097be1cc48255a

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