[CDRIVER-4120] Tests inspecting failpoint error messages failing on latest servers Created: 09/Aug/21  Updated: 28/Oct/23  Resolved: 10/Aug/21

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.19.0

Type: Task Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: failing-on-waterfall
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-57040 Add a test-only command to trigger a ... Closed

 Description   

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.



 Comments   
Comment by Githook User [ 10/Aug/21 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-4093 add versioned API strict examples 5-8 (#843)

CDRIVER-4120 update failpoint error message checks.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/0d6a8ba27ed5cd94a26e4db879f61b545799193f

Comment by Kevin Albertson [ 09/Aug/21 ]

Included in PR: https://github.com/mongodb/mongo-c-driver/pull/843

Generated at Wed Feb 07 21:19:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.