[COMPASS-5377] Should Compass implicitly set directConnection=true for single-host endpoints? Created: 20/Dec/21 Updated: 29/Oct/23 Resolved: 19/Jan/22 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Connectivity |
| Affects Version/s: | None |
| Fix Version/s: | 1.31.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Anna Henningsen | Assignee: | Anna Henningsen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Epic Link: | COMPASS-5198 | ||||||||||||||||
| Story Points: | 2 | ||||||||||||||||
| Documentation Changes: | Needed | ||||||||||||||||
| Documentation Changes Summary: | Recent versions of Compass have been setting directConnection=true in some cases (namely, when connecting to a single host without an SRV connection string, and without replSet or loadBalanced options). Compass no longer has this behavior, and will instead not add a directConnection parameter to the connection string without the user’s knowledge. This means that when the intention is to connect to a single node of a replica set, users will need to explicitly specify directConnection=true in the connection string. |
||||||||||||||||
| Sprint: | Iteration Seoul | ||||||||||||||||
| Description |
|
We haven’t made a firm decision on this point yet, I think. We added the current behavior, which is to add directConnection=true in these cases, in Pro:
Con:
|
| Comments |
| Comment by Githook User [ 26/Jan/22 ] |
|
Author: {'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}Message: chore(data-service): share connection logic with mongosh (#2683)
This addresses:
Co-authored-by: Sergey <petushkov.sergey@gmail.com> |
| Comment by Githook User [ 21/Jan/22 ] |
|
Author: {'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}Message: chore(data-service): share connection logic with mongosh (#2683)
This addresses:
Co-authored-by: Sergey <petushkov.sergey@gmail.com> |
| Comment by Githook User [ 19/Jan/22 ] |
|
Author: {'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}Message: chore(data-service): share connection logic with mongosh (#2683)
This addresses:
Co-authored-by: Sergey <petushkov.sergey@gmail.com> |
| Comment by Githook User [ 19/Jan/22 ] |
|
Author: {'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}Message: chore(data-service): share connection logic with mongosh (#2683)
This addresses:
Co-authored-by: Sergey <petushkov.sergey@gmail.com> |
| Comment by Githook User [ 19/Jan/22 ] |
|
Author: {'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}Message: chore(data-service): share connection logic with mongosh (#2683)
This addresses:
Co-authored-by: Sergey <petushkov.sergey@gmail.com> |
| Comment by Githook User [ 18/Jan/22 ] |
|
Author: {'name': 'Anna Henningsen', 'email': 'anna@addaleax.net', 'username': 'addaleax'}Message: chore(data-service): share connection logic with mongosh This addresses:
This does not address:
|
| Comment by Githook User [ 13/Jan/22 ] |
|
Author: {'name': 'Anna Henningsen', 'email': 'anna@addaleax.net', 'username': 'addaleax'}Message: chore(data-service): share connection logic with mongosh This addresses:
This does not address:
|
| Comment by Githook User [ 13/Jan/22 ] |
|
Author: {'name': 'Anna Henningsen', 'email': 'anna@addaleax.net', 'username': 'addaleax'}Message: chore(data-service): share connection logic with mongosh This addresses:
This does not address:
|