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

Fix analyze_shard_key.js to ignore errors related to readConcern: available

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc8
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0
    • Cluster Scalability 2024-5-27, Cluster Scalability 2024-6-10
    • 0

      Cardinality and frequency metrics are obtained with an aggregation pipeline that runs with readConcern: available, which may go to the wrong shard. In tests where the balancer is on, the analyzeShardKey command can fail with error 7826507, "Cannot analyze the cardinality and frequency of a shard key because the number of sampled documents is zero" due to the chunk containing the sampled documents being moved by the balancer.

      This error can be ignored.

            Assignee:
            israel.hsu@mongodb.com Israel Hsu
            Reporter:
            israel.hsu@mongodb.com Israel Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: