I have accidentally triggered a drop collection command on one replica set (primary-shard) of a MongoDB sharded cluster (no secondary shards). Unfortunately now I can not access the data of this shard anymore. On the machine the .wt files are still available and are not dropped. Also all the cache information of this collection is still available. The MongoDB is version 4.2.22.
Is there a way to restore the deleted collection on this shard again? Thanks in advance
db.fsyncLock()
- see mongodb.com/docs/rapid/tutorial/…