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

Translate UnknownError raised by checkShardingIndex to InvalidOptions error

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc2
    • Affects Version/s: 8.0.0-rc1
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2024-04-15
    • 152

      On SERVER-88548, we changed the behavior of checkShardingIndex command to throw an InvalidOptions error instead of returning an UnknownError, so that there was no need to translate it at the shardCollection operation level.

      However, in a multiversion scenario, we may still receive an UnknownError from a checkShardingIndex command running on an old binary node that has to be translated to an InvalidOptions error.

      So, we still need to translate an UnknownError to a InvalidOptions error until v8.0 becomes the last LTS (note that we will backport SERVER-88548 to v8.0 before it gets released).

            Assignee:
            silvia.surroca@mongodb.com Silvia Surroca
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: