[SERVER-67357] Deflake and improve diagnostics in read_write_concern_defaults_metrics.js Created: 17/Jun/22  Updated: 29/Oct/23  Resolved: 17/Jun/22

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

Type: Bug Priority: Major - P3
Reporter: Andrew Shuvalov (Inactive) Assignee: Andrew Shuvalov (Inactive)
Resolution: Fixed Votes: 0
Labels: sharding-nyc-subteam2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Participants:
Linked BF Score: 11

 Description   

The error

Error: Incorrect BSON length in element with field name '?' in object with unknown _id :

while reading a large BSON is most likely because the file was not fully written to disk yet, but if not it's worrisome.
1. retry reading few times, it doesn't affect test correctness
2. improve the error log itself for better diag



 Comments   
Comment by Liubov Molchanova [ 22/Aug/22 ]

Requesting backport for v6.0 as the issue reproduced in BFG-1282114

Comment by Githook User [ 17/Jun/22 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-67357 deflake test and add better diagnostics
Branch: master
https://github.com/mongodb/mongo/commit/160bedffcb96d5528140fdc35e79a3c1e93cce3d

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