[SERVER-47356] Remove invariant that fast count is 0 when creating an index on an empty collection Created: 06/Apr/20  Updated: 29/Oct/23  Resolved: 20/Apr/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc2, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-48253 invariant in IndexCatalogImpl::create... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-05-04
Participants:
Linked BF Score: 17

 Description   

This invariant tests a legal condition, and should be removed.

After an unclean shutdown fast-counts can be inaccurate Fast counts are not valid during startup recovery, so the number of records may not be correct even if the collection is empty.



 Comments   
Comment by Githook User [ 20/Apr/20 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-47356 Remove invariant that fast count is 0 when creating an index on an empty collection

(cherry picked from commit ff2a56c0105516c74a297aed2556fa628c8862f6)
Branch: v4.4
https://github.com/mongodb/mongo/commit/ceec107b25bc926de1a71b27f6bc7d425961b54b

Comment by Githook User [ 20/Apr/20 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-47356 Remove invariant that fast count is 0 when creating an index on an empty collection
Branch: master
https://github.com/mongodb/mongo/commit/ff2a56c0105516c74a297aed2556fa628c8862f6

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