-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
-
Labels:None
https://docs.mongodb.com/manual/reference/command/collStats/#unexpected-shutdown-and-count
I reported some inaccurate information via DOCS-5682, saying that size and count is updated every 1000 document writes. As clarified in SERVER-24266, we update the in-memory cache every 1000 document writes, but the updates only become persistent when WiredTigerKVEngine::syncSizeInfo is called, most commonly every 60 seconds as part of WiredTigerKVEngine::haveDropsQueued.
This means that number can drift much more in the event of an unclean shutdown (as much as 60 seconds worth of writes).
- is related to
-
SERVER-24266 Large discrepancy in SizeStorer after unclean shutdown
- Backlog
-
DOCS-5682 Document that the size and count in collection stats is not guaranteed to be 100% accurate
- Closed
- related to
-
DOCS-8478 Size and Count Accuracy after Unexpected Shutdown in WT
- Closed