Using MongoDB 2.4.6 with version 0.704.1.0 of the Perl MongoDB driver, I frequently run into exceptions like these:
recv timed out (30000 ms) at ...MongoDB/Cursor.pm line 161. couldn't get response to throw out at ...MongoDB/Cursor.pm line 161. missed the response we wanted, please try again at ...MongoDB/Cursor.pm line 161 invalid header received at ...MongoDB/Cursor.pm line 161. can't get db response, not connected at ...MongoDB/Cursor.pm line 161.
The exceptions are intermittent, and often vanish on the next request (this is a web app). Occasionally, the exceptions will persist over several consecutive requests.
Sorry, but Perl driver for MongoDB is really erroneous and this happens already for years…
I do not know why the worker has to be restarted and I have no control on this…