[GODRIVER-1928] State: Connected when there is no server listening on port Created: 21/Mar/21  Updated: 30/Mar/22

Status: Backlog
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Trivial - P5
Reporter: Oleg Pudeyev (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When I use mongodump to connect to a port on which there is nothing listening, I get a message telling me the state of topology is connected:

serene% ~me/debs/mongo/tools/mongodump  --port 27017   -q 'hello' -c test -d ruby-driver
2021-03-21T08:36:16.812-0400	Failed: can't create session: could not connect to server: server selection error: server selection timeout, current topology: { Type: Single, Servers: [{ Addr: localhost:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : dial tcp [::1]:27017: connect: connection refused }, ] }

I find this message confusing because there isn't anything listening on port 27017, therefore, what is mongodump connected to?



 Comments   
Comment by Ryan Chipman [ 22/Mar/21 ]

Moving this to the GODRIVER project, since the server selection error comes from the driver, not the tools

Generated at Thu Feb 08 08:37:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.