Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63433

Wrong size computed by getApproximateSize() for ShardFiltererImpl and ShardKeyPattern

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • QE 2022-02-21

      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.

            Assignee:
            andrew.paroski@mongodb.com Drew Paroski
            Reporter:
            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: