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

Count and distinct operations do not include the shard filter stage

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.9, 3.3.12
    • Component/s: Sharding
    • None
    • Sharding
    • ALL
    • Sharding 2016-09-19

      The count and distinct commands when run against a shard do not include the ShardFilterStage as part of their plan and because of this orphaned data does not get excluded.

      For the count command specifically, the shard filter stage can only be included when not using the "fast count" option, which uses the run time record counter.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: