[SERVER-43352] restartCatalog expects listDatabases to include empty databases Created: 16/Sep/19  Updated: 29/Oct/23  Resolved: 03/Oct/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 4.2.0
Fix Version/s: 4.3.1

Type: Bug Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Xiangyu Yao (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-39515 Remove the KVDatabaseCatalogEntry, KV... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-10-07
Participants:
Linked BF Score: 15

 Description   

Two phase dropDatabase sets a drop pending flag flag so other operations can cooperatively serialize execution.

One such consumer is the test command, restartCatalog. However the list of databases restartCatalog receives only contain databases with at least one collection. That list is not consistent with the databases that DBHolder knows about.

This can cause restartCatalog to delete database objects; consequently losing their drop pending state.



 Comments   
Comment by Githook User [ 02/Oct/19 ]

Author:

{'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com', 'name': 'Xiangyu Yao'}

Message: SERVER-43352 RestartCatalog expects listDatabases to include empty databases
Branch: master
https://github.com/mongodb/mongo/commit/ac796463d5f6fbca4e0b7f2dd0f6da2a58a66a9e

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