[SERVER-33022] make the CatalogCache cache the databaseVersion in the DatabaseInfoEntry Created: 30/Jan/18  Updated: 29/Oct/23  Resolved: 06/Feb/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.7.1
Fix Version/s: 3.7.2

Type: Task Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: Esha Maharishi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2018-02-12
Participants:
Linked BF Score: 0

 Description   

Once SERVER-32608 goes in, databases (in FCV >= 4.0) will be created with a databaseVersion (note the new 'version' field):

{
  _id: "db1",
  primary: "shard0000",
  partitioned: false,
  version: { uuid: UUID("754e23e3-0c42-485f-83fe-d3ea12fe874c"), lastMod: 1 }
}

The routing table caches on mongos and shards should be made to cache this databaseVersion, so that it can be included in the future on outgoing requests targeted by primary shard.



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

Author:

{'email': 'esha.maharishi@mongodb.com', 'name': 'Esha Maharishi', 'username': 'EshaMaharishi'}

Message: SERVER-33022 remove testing for fcv=3.4
Branch: master
https://github.com/mongodb/mongo/commit/1f3e2875a1c7a922c2454f28fcc4a7ba22b431dd

Comment by Githook User [ 06/Feb/18 ]

Author:

{'email': 'esha.maharishi@mongodb.com', 'name': 'Esha Maharishi', 'username': 'EshaMaharishi'}

Message: SERVER-33022 make the CatalogCache cache the databaseVersion in the DatabaseInfoEntry (re-commit with bug fix)
Branch: master
https://github.com/mongodb/mongo/commit/adc3397b43548d9ef0b12cb8b61f57cec5bd25e1

Comment by Githook User [ 06/Feb/18 ]

Author:

{'email': 'esha.maharishi@mongodb.com', 'name': 'Esha Maharishi', 'username': 'EshaMaharishi'}

Message: Revert "SERVER-33022 make the CatalogCache cache the databaseVersion in the DatabaseInfoEntry"

This reverts commit 481e017d1d4fbe3468292c952ee0ba4ce31a92e9.
Branch: master
https://github.com/mongodb/mongo/commit/05c8669da01904fabd28c2fd7b3f7e2d3949fea6

Comment by Githook User [ 05/Feb/18 ]

Author:

{'email': 'esha.maharishi@mongodb.com', 'name': 'Esha Maharishi', 'username': 'EshaMaharishi'}

Message: SERVER-33022 make the CatalogCache cache the databaseVersion in the DatabaseInfoEntry
Branch: master
https://github.com/mongodb/mongo/commit/481e017d1d4fbe3468292c952ee0ba4ce31a92e9

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