Mongodb lost collection catalog

We are using MongoDB 3.0.4 offline using wiredTiger, Windows Server 2008 x64. We have a situation where MongoDB has lost the "catalog" of collections (I think).

We use this database in a JavaEE application, inside Wildfly 8.2.0.Final. The mongo-java driver version is 3.0.0.

All collection files (the collection is *. Wt) and index files are stored in folders, but only 2 collections were found in the database in repair, showCollections and other commands files (we have almost 20). These two collections were "recreated" by the application when the service was restarted.

In the MongoDB logs, we found only the completion and startup logs. We did not find any error logs in the logs.

Does anyone know what happened here?

+4
source share
1 answer

I am pretty sure that the MongoDB / WiredTiger directory was corrupted by an unexpected shutdown of the machine. (There are indications of this in MongoDB and Windows reviews.)

Looking for a way out on the Internet, I found this error and this improvement , which will probably fix this problem or, perhaps, offer a way to recover data if it happens again.

After reading the error / improvement, I think that today there is no way to recover my data. Unfortunately, I will need to restore the backup and start with it.

0
source

Source: https://habr.com/ru/post/1619210/


All Articles