[SERVER-54984] Relax invariant in ReshardingOpObserver about temporary resharding collection being sharded Created: 05/Mar/21  Updated: 06/Nov/23  Resolved: 12/Mar/21

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

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Yuhong Zhang
Resolution: Fixed Votes: 0
Labels: PM-234-M2.5, PM-234-T-data-clone
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
causes SERVER-59023 Resharding can fail with NamespaceNot... Closed
is caused by SERVER-52639 Fail resharding operation if new shar... Closed
Related
related to SERVER-60094 ReshardingOplogApplicationRules does ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2021-03-22
Participants:
Linked BF Score: 153
Story Points: 1

 Description   

It is technically possible for a user to manually create a "system.resharding." collection that isn't sharded. The invariants in ReshardingOpObserver::onInserts() and ReshardingOpObserver::onUpdate() should be changed to a uassert(ErrorCodes::NamespaceNotSharded, ..., metadata && metadata->isSharded()) to avoid crashing the server in such a situation.



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

Author:

{'name': 'Yuhong Zhang', 'email': 'danielzhangyh@gmail.com', 'username': 'YuhongZhang98'}

Message: SERVER-54984 Relax invariant in ReshardingOpObserver about temporary reharding collection being sharded
Branch: master
https://github.com/mongodb/mongo/commit/6132952d54ba4b57c674b067098ae0b996b4dc7c

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