-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.0.3, 3.0.4, 3.1.5
-
Component/s: WiredTiger
-
None
-
ALL
-
When mongod is restarted after a hard crash (and a successful recovery) the values returned by 'db.stats.objects', 'db.<coll>.stats.count', 'db.<coll>.count()' are invalid.
Note this is not the issue of count in a sharded clusters - it applies to standalone hosts and replica sets too (though only when using WiredTiger)
It looks like the count can be reset to the correct value using for example a 'db.<coll>.validate(true)' command.
The problem appears to involve the recovery phase when the log/journal is replayed on top of the data from the last successful checkpoint.
Note: This is not an issue with data integrity. The data is recovered successfully, it's just the statistics reported by 'db.stats' and relatives which are incorrect following a hard crash/kill.
- is related to
-
SERVER-19052 Remove sizeStorer recalculations at startup with WiredTiger
- Closed