[SERVER-56153] scaled_collection_stats.js should flush all data to disk before checking totalIndexSize Created: 19/Apr/21  Updated: 29/Oct/23  Resolved: 30/Apr/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 5.0.0
Fix Version/s: 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Paolo Polato
Resolution: Fixed Votes: 0
Labels: neweng, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 143

 Description   

The scaled_collection_stats.js test inserts a bunch of documents to a collection, then determines the unscaled total index size and finally checks that the totalIndexSize scaled by itself (as read in a previous command) equals to 1.

The totalIndexSize metric represents the index size on disk, rather than on memory, so the test needs to ensure that the collection data has been flushed to disk. This is similar to SERVER-28716.

This can be done by issuing a flush command (e.g. like in this test).



 Comments   
Comment by Githook User [ 30/Apr/21 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-56153 Ensure that all data are flushed to disk before calculating the collection stats.
Branch: master
https://github.com/mongodb/mongo/commit/467eed4bec3cb96559fd90ae5c8a1f36ddc073fa

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