...
BugZero found this defect 2803 days ago.
to flush all data to disc and make sure that stat values will be stable before inspecting them.
xgen-internal-githook commented on Tue, 6 Nov 2018 16:45:16 +0000: Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'} Message: SERVER-28716 Call fsync after setup before calling collStats/dbStats in jstests/sharding/stats.js (cherry picked from commit dc2e2b281bf7bc89de73c9bb7bf8d587ba40291c) Branch: v3.4 https://github.com/mongodb/mongo/commit/67b6090dd4bfb2ae27d090a07fe30d47cf673601 xgen-internal-githook commented on Fri, 14 Apr 2017 18:32:31 +0000: Author: {u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'} Message: SERVER-28716 Call fsync after setup before calling collStats/dbStats in jstests/sharding/stats.js Branch: master https://github.com/mongodb/mongo/commit/dc2e2b281bf7bc89de73c9bb7bf8d587ba40291c