MongoDB 4.0+ may lose data during unclean shutdowns on macOS 10.12+. Please see
WT-4112 for additional information.
Potential data corruption if the server is not shutdown properly.
We have raised an issue with the macOS team at Apple and they have properly addressed this issue as part of macOS 10.14.1.
MongoDB production releases 4.0+ are affected by this issue.
This issue has been resolved as part of macOS 10.14.1, if you are running 10.14.1 or later this issue is now fixed.