Fix ShardNotFound handling in shard_removal_triggers_catalog_cache_invalidation.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.3.0, 5.0.7
    • Affects Version/s: 5.2.0, 4.2.17, 5.0.5, 4.4.12
    • Component/s: None
    • Fully Compatible
    • ALL
    • v5.0, v4.4, v4.2
    • Sharding EMEA 2022-02-21
    • 41
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The test is trying to handle the non-idempotency of removeShard (SERVER-32553) by checking for ShardNotFound error . However, the check is wrongly preceded by an assert.CommandWorked that throws before being able to check the error code.

            Assignee:
            Allison Easton
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: