[CXX-2464] Use the count command instead of collStats to implement estimatedDocumentCount Created: 11/Mar/22  Updated: 28/Oct/23  Resolved: 06/Jun/22

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.7.0

Type: Task Priority: Major - P3
Reporter: PM Bot Assignee: Ezra Chung
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CDRIVER-4309 Use the count command instead of coll... Closed
Gantt Dependency
has to be done before CXX-2456 Support 'let' option in BulkWriteOptions Closed
has to be done before CXX-2399 Support 'let' option for multiple CRU... Closed
has to be done after CXX-2522 Rename csfle shared library references Closed
Issue split
split from DRIVERS-2228 Use the count command instead of coll... Closed
Server Compat: 5.0, 5.3, 6.0
Quarter: FY23Q2
Upstream Changes Summary:

DRIVERS-2228:
Drivers should update their estimatedDocumentCount implementations to use the count command, regardless of the wire version of the connected server. The unified CRUD tests, legacy retryable reads tests, Atlas Data Lake tests, and the versioned API spec tests will need to be synced to mongodb/specifications@021cbc8. Lastly, the "Count API Details" section of the CRUD spec includes some documentation and release notes requirements that drivers will need to adhere to.


 Description   

This ticket was split from DRIVERS-2228, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 01/Jul/22 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: CXX-2464 Update Versioned API tests to correctly handle backports (#872)
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/43c93631aa6257b6d3fe0e57f4a761f5b6b13dfb

Comment by Githook User [ 06/Jun/22 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: CXX-2464 Use count instead of collStats for estimatedDocumentCount (#863)

  • Add test runner support for creating collection views
  • Update CRUD, retryable reads, and versioned API spec tests
  • Avoid repeated output of skip warning during test file loop
  • Do not ignore patch number when comparing server versions
  • Support pinning mongo-c-driver version to commit hashes
Generated at Wed Feb 07 22:06:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.