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

Relax index use count check in index_stat.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc5
    • Affects Version/s: 8.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • Fully Compatible
    • ALL
    • v8.0
    • 150

      After this change, for SERVER-89650 index_stats.js began failing under some suites e.g., unsplittable_collections_created_on_any_shard_jscore_passthrough.yml as a retry after a failure due to a StaleConfig led to stats being incremented again.

      While it's reasonable that index_stats.js should expect exact stat values to verify correct behaviour, in the presence of retries a strict == 1 on index use count may fail without indicating any real issue.

      As it can still verify that the expected index is used while in suites which may require retries, relax this check to >= 1.

            Assignee:
            james.harrison@mongodb.com James Harrison
            Reporter:
            james.harrison@mongodb.com James Harrison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: