[SERVER-72421] Make `ftdc_mirrored_reads.js` wait for FTDC to converge Created: 29/Dec/22  Updated: 29/Oct/23  Resolved: 15/Feb/23

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Amirsaman Memaripour Assignee: Jason Chan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File ftdc.png    
Issue Links:
Depends
Assigned Teams:
Service Arch
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service Arch 2023-01-23, Service Arch 2023-02-06, Service Arch 2023-02-20
Participants:
Linked BF Score: 5

 Description   

This is a test only issue, currently only concerning Windows variants. The following assertion is sensitive to the number of reads successfully mirrored by the primary, and observed on secondaries:

    ...
    jsTestLog("Verifying diagnostic collection for mirrored reads on secondaries");
    let mirroredReadsSucceeded = getDiagnosticData(primary).succeeded;
    let mirroredReadsProcessedAfter = getMirroredReadsProcessedAsSecondary();
    assert.eq(mirroredReadsSucceeded, mirroredReadsProcessedAfter - mirroredReadsProcessedBefore);
}
rst.stopSet();
})();

Currently, the test captures FTDC on all members of the replica-set after completing the load operations, which makes the test sensitive to any temporary inaccuracies. This is the case to all linked failures, as shown by the following figure, where the number of processed reads on s0 drops to zero (due to a temporary issue in collected FTDC metrics) and goes back to 200 later on:

A possible solution is to use assert.soon to ensure all mirrored operations are processed on secondaries, thus tolerating temporary issues with collecting FTDC.



 Comments   
Comment by Githook User [ 11/Feb/23 ]

Author:

{'name': 'Jason Chan', 'email': 'jason.chan@mongodb.com', 'username': 'jasonjhchan'}

Message: SERVER-72421 Make `ftdc_mirrored_reads.js` wait for FTDC to converge
Branch: master
https://github.com/mongodb/mongo/commit/0ce9ea723c7201e9789ad37ac79fa335cbbe5495

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