[SERVER-64851] WiredTiger error messages hardcoded into Server tests Created: 23/Mar/22  Updated: 29/Oct/23  Resolved: 05/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Keith Bostic (Inactive) Assignee: Jordi Olivares Provencio
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done before WT-8902 MDB server sets the commit/durable ti... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-04-18
Participants:

 Description   

There are places the MongoDB Server test harness looks for explicit, hard-coded error messages from WiredTiger, which is more fragile than it should be, it would be great to not depend on specific error message wording:

src/mongo/db/storage/kv/kv_engine_test_harness.cpp:invariant(false, "commit timestamp is less than the oldest timestamp");
invariant(false, "commit timestamp is less than the stable timestamp");



 Comments   
Comment by Keith Bostic (Inactive) [ 05/Apr/22 ]

Thank you, jordi.olivares-provencio! I'll get WT-8902 moving.

Comment by Githook User [ 05/Apr/22 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-64851 Refactor tests to not depend on specific WiredTiger strings
Branch: master
https://github.com/mongodb/mongo/commit/4146e4cc549504cf3e4909b7ab9f63215947cbcd

Generated at Thu Feb 08 06:01:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.