[SERVER-63433] Wrong size computed by getApproximateSize() for ShardFiltererImpl and ShardKeyPattern Created: 08/Feb/22  Updated: 29/Oct/23  Resolved: 09/Feb/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0

Type: Bug Priority: Major - P3
Reporter: Sergi Mateo Bellido Assignee: Drew Paroski
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QE 2022-02-21
Participants:

 Description   

SharedFiltererImpl::getApproximateSize() returns zero rather than the actual size. Looking at the code it seems very likely this is a typo that got missed during development / code review. It also appears there is a similar bug/typo in ShardKeyPattern::getApproximateSize().

The goal of this task is to look at ShardFiltererImpl::getApproximateSize() and ShardKeyPattern::getApproximateSize() and to fix the implementations of these methods to produce correct results.



 Comments   
Comment by Githook User [ 08/Feb/22 ]

Author:

{'name': 'Drew Paroski', 'email': 'drew.paroski@mongodb.com', 'username': 'paroski'}

Message: SERVER-63433 Fix getApproximateSize() for ShardFiltererImpl and ShardKeyPattern
Branch: master
https://github.com/mongodb/mongo/commit/ef7ec47340d344fde4986046d0591c6f5527d9f3

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