Fix shardingStatistics' numHostsTargeted for tracked unsharded collections

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2023-12-25, CAR Team 2024-01-08, CAR Team 2024-01-22
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      NumHostsTargetedMetrics::parseTargetType only returns 'kUnsharded' when there is no routing table (i.e. no chunks). However, tracked unsharded collections do have a routing table. This may cause operations on such collections to be accounted as 'oneShard' operations, rather than the expected 'unsharded'.

            Assignee:
            Jordi Olivares Provencio
            Reporter:
            Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: