[SERVER-41916] WiredTiger alter call in alterIdentMetadata should report index information on failure Created: 25/Jun/19  Updated: 29/Oct/23  Resolved: 10/Jul/19

Status: Closed
Project: Core Server
Component/s: WiredTiger
Affects Version/s: None
Fix Version/s: 4.2.0-rc3

Type: Improvement Priority: Major - P3
Reporter: Maria van Keulen Assignee: Maria van Keulen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Execution Team 2019-07-15
Participants:
Linked BF Score: 19

 Description   

Presently, WiredTigerKVEngine::alterIdentMetadata uses invariantWTOK on its call to WiredTiger alter. As a result, if the alter fails for some reason, e.g., "No such file or directory", it results in the following cryptic log line:

Invariant failure: session.getSession()->alter(session.getSession(), uri.c_str(), alterString.c_str()) resulted in status UnknownError: 2: No such file or directory at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 1341

It would be more helpful to specify extra information about the offending index, e.g., the URI string, if the alter call fails.



 Comments   
Comment by Githook User [ 10/Jul/19 ]

Author:

{'name': 'Maria van Keulen', 'email': 'maria@mongodb.com', 'username': 'mvankeulen94'}

Message: SERVER-41916 Log ident information upon WiredTiger alter failure
Branch: v4.2
https://github.com/mongodb/mongo/commit/06b0e68c1bb0ee93425e28e9ca5e35926eca4fd2

Generated at Thu Feb 08 04:59:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.