[SERVER-63842] Improve error messages in IDL Compatibility Checker Created: 18/Feb/22  Updated: 29/Oct/23  Resolved: 08/Mar/22

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

Type: Task Priority: Major - P3
Reporter: Huayu Ouyang Assignee: Huayu Ouyang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2022-03-07, Repl 2022-03-21
Participants:

 Description   

Currently the IDL compatibility checker error messages can be confusing to debug.
For example in this case: Comparing src and src: Error in src/mongo/db/ops/write_ops.idl: ID0010: 'insert' has a new reply field or sub-field 'writeErrors' of type 'object_owned' that has a bson serialization type 'any'

  • We should change references to "new reply field/command parameter/command/_" to "new version of the reply field/command parameter/command/_" to indicate that it's not a new field but the new version of the field, and same with old ___
  • We should also say the name of the old type in the error message. (and similarly for other error messages)


 Comments   
Comment by Githook User [ 08/Mar/22 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-63842 Improve error messages in IDL Compatibility Checker
Branch: master
https://github.com/mongodb/mongo/commit/d4af42c0e63638a4b3b191959299150722c3a3fc

Generated at Thu Feb 08 05:58:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.