[JAVA-3062] Connection Reset Created: 31/Oct/18 Updated: 11/Sep/19 Resolved: 14/Dec/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Connection Management |
| Affects Version/s: | 3.8.2 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Matan Shukry | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Every once in a while I'm getting a connection reset exception when querying mongodb. A second query succeed, and after some time it will fail again. Not really sure why it's even failing to begin with, and there seems to be no relevant logs in mongo either. Attaching stacktrace:
|
| Comments |
| Comment by Jeffrey Yemin [ 31/Oct/18 ] | |||||||||||
|
Hi msh It's just not possible to determine what the root cause is given this information. I suggest that you run Wireshark, or some equivalent network tracing tool, to figure out what's happening on the network. | |||||||||||
| Comment by Matan Shukry [ 31/Oct/18 ] | |||||||||||
|
Hi Jeff, I didn't mention it before because I didn't thought it was relevant, but you mentioned network so it might - I'm using mongodb inside a docker (using minikube). I'm also using it with Reddis and Elasticsearch though, and no problems in any of them. And most of the time, mongo is also working great.
Anyway, regarding the logs: I've tried to look in them, but it looks normal to me. I might be wrong though; this is what's in them (it pretty much repeats):
I am restarting my app many times (it is dev), so connection end/accepted make sense due to that, hence why the logs seems fine to me. | |||||||||||
| Comment by Jeffrey Yemin [ 31/Oct/18 ] | |||||||||||
|
Hi msh The driver won't close a connection like this so something is happening either in the MongoDB server or in the network (e.g. a load balancer). Please start by checking for clues in the server logs to see if there are any connection drops logged there. |