Bug in 4.2.1 MongoDB on allocated DB space?

Hello, I have 4.2.1 MongoDB version and look this result of commonservices DB space:
(Note: The dataSize is bigger then the storageSize and sizeOnDisk)
how is this possible? existis one procedure to solve this?

Obs.: I have others DBs present true information.

Thanks,
Henrique.

Hi @Henrique_Souza,

MongoDB’s WiredTiger storage engine compresses indexes and collections by default, so it is expected that the data size can be bigger than the storage size. The ratio between storage and data will depend on how compressible your data is as well as the compression algorithm used.

While I believe the behaviour you are describing is expected, I would note that MongoDB 4.2.1 was released almost two years ago (Oct 22, 2019). I recommend upgrading to the latest 4.2.x release (currently 4.2.23) as there have been many bug fixes and stability improvements since 4.2.1: 4.2 Changelog. Minor updates within the same release series do not introduce any backward breaking changes.

Regards,
Stennie

4 Likes

Thanks @Stennie by explanation!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.