How can I test an ungraceful mongodb disconnection event?

Viewed 24

I would like to investigate and test an ungraceful mongodb disconnection / shutting down event. The only methods I know of are the normal mongodb methods, which disconnect gracefully, so those won't do.

I am wondering if there is an official way to simulate an ungraceful disconnection, but if not, how could I achieve this through other methods?

I do not have any code to share, as I am not sure if the aforementioned can be done with a testing suite in the first place.

0 Answers
Related