SERVER-138626ClosedFixed

Fix flakey join plan cache golden test

This patch adds a call to fsync before running the plan cache test to ensure that on disk stats are properly initialized at the first storage engine checkpoint. Prior to this change, the join plan cache invalidation golden test was flakey with a fail rate of 1-5% due to the race between first checkpoint and query.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.