[DRIVERS-2398] Limit mongos Hosts for Implicit Session Prose Test Created: 25/Jul/22 Updated: 03/Aug/22 |
|
| Status: | Implementing |
| Project: | Drivers |
| Component/s: | Sessions |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Preston Vasquez | Assignee: | Preston Vasquez |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Driver Changes: | Needed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Downstream Changes Summary: | Drivers should sync sessions prose tests to mongodb/specifications@959ac0. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Driver Compliance: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
SummaryIf there are more than one writable servers in the topology, the following condition for the implicit session prose test is unlikely to pass, at least for the Go Driver
For reference, it seems like the mongo-orchestration can often specify starting 2 mongos instances, e.g. auth.json. This ticket proposes extending the prose test to include ensuring a single mongos node is used, ala retryable-reads. MotivationThe race condition created by using multiple writable servers in a mongos topology makes the first MUST condition of the implicit session prose test flakey. Here is an evergreen patch as example. Who is the affected end user?NA How does this affect the end user?NA How likely is it that this problem or use case will occur?This is consistent in the Go Driver. If the problem does occur, what are the consequences and how severe are they?Failing evergreen tests for sharded clusters. Is this issue urgent?No Is this ticket required by a downstream team?NA Is this ticket only for tests?Yes. |
| Comments |
| Comment by Githook User [ 03/Aug/22 ] |
|
Author: {'name': 'Preston Vasquez', 'email': '24281431+prestonvasquez@users.noreply.github.com', 'username': 'prestonvasquez'}Message: DRIVERS-2398 add mongos limiting note (#1280) |