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

Improve cache.collections consistency check in ShardingTest hook

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible

      In checkUUIDsConsistentAcrossCluster it is currently assumed that cache.collections is always containing infos about a specific collection. When such condition is not met, actualConfigMetadata is wrongly set to an undefined value leading to a a cryptic error.

      It should be checked that the cursor returns exactly one result before actually getting it.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: