Smoke test for analyzeShardKey metrics fails for unique index

XMLWordPrintableJSON

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

      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
            Reporter:
            Israel Hsu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: