[CDRIVER-799] Scanner must obey connectTimeoutMS Created: 12/Aug/15 Updated: 19/Oct/16 Resolved: 17/Aug/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.2-beta0 |
| Fix Version/s: | 1.2-beta1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Currently the scanner waits serverSelectionTimeoutMS to connect to all servers and receive ismaster responses. This doesn't match the spec:
serverSelectionTimeoutMS on the other hand expresses the user's expectation of how long an election or other topology change might take. The two knobs should be kept distinct. The selection time for a single-threaded client with serverSelectionTryOnce "on" (the default) should be affected by connectTimeoutMS, not serverSelectionTimeoutMS, but currently it's the opposite. |
| Comments |
| Comment by Githook User [ 23/Aug/16 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: This test was to prove the scanner obeys connectTimeoutMS ( Also deals with |
| Comment by Githook User [ 17/Aug/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: Currently the scanner waits serverSelectionTimeoutMS to connect to all servers "The socket used to check a server MUST use the same connectTimeoutMS as |