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

Smoke test for analyzeShardKey metrics fails for unique index

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • Cluster Scalability Priorities

      The test jstests/core_sharding/analyze_shard_key/cardinality_and_frequency.js fails on validating shard key characteristics on a collection with a supporting index that is unique. The command result indicates that the index is not unique.

      When running locally, inspection of data files shows that the index in question is unique on the shard where the collection is created, but not unique on the shard where a chunk was moved to prior to calling analyzeShardKey.

      This test was converted from jstests/sharding/analyze_shard_key/cardinality_and_frequency.js where it does not fail this check on index uniqueness.

            Assignee:
            jane.tio@mongodb.com Jane Tio
            Reporter:
            israel.hsu@mongodb.com Israel Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: