[SERVER-32367] AutoGetCollectionOrView and its related classes perform shard version checking on a view Created: 15/Dec/17  Updated: 30/Oct/23  Resolved: 14/Feb/18

Status: Closed
Project: Core Server
Component/s: Querying, Sharding
Affects Version/s: 3.6.0
Fix Version/s: 3.7.3

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: read-only-views
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-29909 Libraries db/db_raii and db/s/shardin... Closed
is depended on by SERVER-32198 Missing collection metadata on the sh... Closed
Problem/Incident
causes SERVER-33624 Commands which accept UUIDs do not co... Closed
Related
related to SERVER-35699 Avoid holding locks during query parsing Backlog
is related to SERVER-33632 Make UUID catalog reload atomic Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2018-02-12, Sharding 2018-02-26
Participants:

 Description   

Some of the variants of AutoGetCollectionOrView and AutoGetCollectionOrViewForReadCommand perform shard version checking on a namespace that is a view and not collection. This is wrong at least because it causes double checking (once for the view and once for the underlying collection), however more importantly it makes it impossible to make unsharded collections tracked on the config server.



 Comments   
Comment by Githook User [ 14/Feb/18 ]

Author:

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

Message: SERVER-32367 Clean up the AutoGet* suite of classes

Comment by Githook User [ 06/Feb/18 ]

Author:

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

Message: SERVER-32367 Make AutoGetCollection throw if UUID cannot be resolved
Branch: master
https://github.com/mongodb/mongo/commit/1f376bcf8824df1a6122c297d5205daa1e6ff8a7

Comment by Githook User [ 02/Feb/18 ]

Author:

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

Message: SERVER-32367 Pull UUID and view resolution out of db_raii
Branch: master
https://github.com/mongodb/mongo/commit/b88f981042e73118d22a7ea1b2135d9ae2115d40

Comment by Githook User [ 02/Feb/18 ]

Author:

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

Message: SERVER-32367 Make the Command::parseNs* methods take StringData
Branch: master
https://github.com/mongodb/mongo/commit/ed7af7cc923316749055d4be7486918d30ed8c59

Generated at Thu Feb 08 04:30:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.