[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: |