How to reproduce:
Initiate Hydra with a clean database. Add stages and configurations
Start hydra
Hydra creates database and 4 collections (documents,oldDocuments,hydra,stages)
prepared is set to true.
Shutdown Hydra core
Now drop oldDocuments in mongo. - prepared state is now compromised
Start hydra again and hydra does not re-create the oldDocuments on connect, due to prepare status being set to true.
How to reproduce:
Initiate Hydra with a clean database. Add stages and configurations
Start hydra
Hydra creates database and 4 collections (documents,oldDocuments,hydra,stages)
prepared is set to true.
Shutdown Hydra core
Now drop oldDocuments in mongo. - prepared state is now compromised
Start hydra again and hydra does not re-create the oldDocuments on connect, due to prepare status being set to true.