Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4120

Tests inspecting failpoint error messages failing on latest servers

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.19.0
    • Affects Version/s: None
    • Component/s: None

      Background & Motivation

      Tests inspecting the error messages from errors generated from server failpoints have started failing.

      Here is an example patch build with the relevant logs:

      [2021/08/07 19:29:33.632] Begin /Stepdown/not_primary_keep, seed 906424260
      [2021/08/07 19:29:44.150] /data/mci/52458960e8d51b5963f8094388de54a6/mongoc/src/libmongoc/tests/test-mongoc-primary-stepdown.c:245 test_not_primary_keep_pool(): [Failing command via 'failCommand' failpoint] does not contain [Failing command due to 'failCommand' failpoint]
      

      This is due to the changes in SERVER-57040 which change the message of the failpoint error reply.

      Drivers should prefer not relying on error messages. The server does not guarantee stable error messages.

      Scope
      Update failing tests that are inspecting failpoint error messages. Remove or update the error message check.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: