Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3514

Investigate changes in SERVER-89065: Remove numShardedCollections metrics from serverStatus

    • Type: Icon: Investigation Investigation
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Tools and Replicator

      Original Downstream Change Summary

      Removed numShardedCollections metric from serverStatus command output

      Description of Linked Ticket

      Due to the introduction of tracked unsharded collections (PM-3364) the numShardedCollections metric reported in server status is now wrong because it reports both sharded and tracked unsharded collections.

      In order to report only sharded collection, we would need to perform a read on config.collections filtering out tracked unsharded collection. Unfortunately, this operation is to slow to be executed as part of serverStatus command execution. On the other hand maintaining a cached count of the sharded collection would require a significant effort.

      Since the number of sharded collection can be easily retrieved by means of user facing server API we decided to remove this metric from the serverStatus command.

            Unassigned Unassigned
            backlog-server-pm Backlog - Core Eng Program Management Team
            0 Vote for this issue
            2 Start watching this issue