[DOCS-12980] Investigate changes in SERVER-33272: The DatabaseHolder::close() function no longer requires a global write lock and neither does the dropDatabase command. Created: 23/Aug/19 Updated: 13/Nov/23 Resolved: 17/Dec/19 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.1, 4.2.2, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Backlog - Core Eng Program Management Team | Assignee: | Kay Kim (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | docs-onboarding-candidate | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Days since reply: | 4 years, 8 weeks, 1 day ago | ||||||||||||||||
| Epic Link: | DOCS: 4.4 Server Release Work | ||||||||||||||||
| Description |
DescriptionDownstream Change Summary In addition to the work done above, the `dropDatabase` command no longer requires a global exclusive lock but instead only needs a database exclusive lock to drop a database. Old Description of Linked Ticket (SERVER ticket split and the old description is for SERVER-43925 and will be doc'ed separately) Currently, the kv engine does not check to see if a database is empty after a collection drop. Thus, empty databases can persist until mongod restarts (or the catalog is reloaded via replication rollback to stable timestamp). This situation is usually benign, but a database entry's presence does do one thing: it enforces that no other databases that are spelled the same but differ in capitalization can be created. To fix this, we can check to see if a database is empty (i.e., no collection entries remain in the catalog) after a collection drop. If it is indeed empty, we can attempt to close the database by locking it in X mode and calling DatabaseHolder::close(). Scope of changesImpact to Other DocsMVP (Work and Date)Resources (Scope or Design Docs, Invision, etc.) |
| Comments |
| Comment by Githook User [ 17/Dec/19 ] |
|
Author: {'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}Message: |
| Comment by Ravind Kumar (Inactive) [ 27/Aug/19 ] |
|
Note: SERVER ticket reopened due to build failures. Check status of upstream ticket before starting work. |