[SERVER-15311] Stop reading authzVersion to decide which users collection to read. Created: 18/Sep/14  Updated: 11/Jul/16  Resolved: 19/Sep/14

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: None
Fix Version/s: 2.7.7

Type: Improvement Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

In 2.6, to support upgrading from 2.4, the auth system would read user documents from one of several places based on the current "authzVersion". In 2.8, user documents are always read from the same place, because the auth upgrade is in-place. We should remove support for this decision, as it simplifies concurrency control code and will reduce the risk of introducing hidden errors during upgrade.



 Comments   
Comment by Githook User [ 19/Sep/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-15311 Never read from admin.system.new_users when looking for user documents.

The master branch no longer needs to support the 2.4-2.6 upgrade process, obviating the need for
this decision making. Removing it will reduce the likelihood of future errors, and simplifies
storage concurrency control by removing the need for a multi-document atomic read.
Branch: master
https://github.com/mongodb/mongo/commit/8218e483ed31b5d8392a62cb1bc8c402e8ed0e97

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