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

Consolidate command response parse helpers

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • 2

      Currently, there isn't a convenient way in the test infrastructure to parse a command response and get information about whether it completed successfully or not, with what error code it failed, if it's retryable, if it got other errors such like write errors or write concern errors, etc.

      There are some helpers like the assert.commandFailed family of functions, or sh.assertRetryableCommandWorkedOrFailedWithCodes, but there is no general method to inspect such errors and so people end up rolling up their own all over the test code base.

      The goal of this ticket is to come up with a coherent utility library to cover all these use cases.

            Assignee:
            Unassigned Unassigned
            Reporter:
            aitor.esteve@mongodb.com Aitor Esteve Alvarado
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: