[COMPASS-6595] Initial ping command does not inherit connection readpreference Created: 09/Mar/23  Updated: 29/Oct/23  Resolved: 09/Mar/23

Status: Closed
Project: Compass
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: 1.36.2

Type: Bug 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:
Related
related to COMPASS-4539 Fix direct connecting to a secondary ... Closed
related to MONGOSH-508 db.runCommand not inheriting readPref... Closed
related to COMPASS-5207 Refactor dataService.instance method ... Closed
related to COMPASS-5341 Ensure that connecting with loadBalan... Closed
Story Points: 2
Documentation Changes: Not Needed
Sprint: Iteration Whale

 Description   

See HELP-43168. Introduced in COMPASS-5341, this didn’t include the fix for this issue that was introduced in COMPASS-4539 (and generalized in COMPASS-5207).



 Comments   
Comment by Githook User [ 22/Mar/23 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(data-service): apply readPref to initial `ping` command COMPASS-6595 (#4140)

Otherwise, connecting to a secondary-only replset with
`?readPreference=secondary` fails in Compass.

As a drive-by, this also applies the same logic to the `killSessions`
helper method.
Branch: 1.36-releases
https://github.com/mongodb-js/compass/commit/fc8fd38528c9266bbb7a0c7a8e17cfab70d5460f

Comment by Githook User [ 21/Mar/23 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(data-service): apply readPref to initial `ping` command COMPASS-6595 (#4140)

Otherwise, connecting to a secondary-only replset with
`?readPreference=secondary` fails in Compass.

As a drive-by, this also applies the same logic to the `killSessions`
helper method.
Branch: COMPASS-6427-export-json
https://github.com/mongodb-js/compass/commit/fc8fd38528c9266bbb7a0c7a8e17cfab70d5460f

Comment by Githook User [ 17/Mar/23 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(data-service): apply readPref to initial `ping` command COMPASS-6595 (#4140)

Otherwise, connecting to a secondary-only replset with
`?readPreference=secondary` fails in Compass.

As a drive-by, this also applies the same logic to the `killSessions`
helper method.
Branch: github-link
https://github.com/mongodb-js/compass/commit/fc8fd38528c9266bbb7a0c7a8e17cfab70d5460f

Comment by Githook User [ 10/Mar/23 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(data-service): apply readPref to initial `ping` command COMPASS-6595 (#4140)

Otherwise, connecting to a secondary-only replset with
`?readPreference=secondary` fails in Compass.

As a drive-by, this also applies the same logic to the `killSessions`
helper method.
Branch: replace-reflux-with-redux-in-query-bar
https://github.com/mongodb-js/compass/commit/fc8fd38528c9266bbb7a0c7a8e17cfab70d5460f

Comment by Githook User [ 09/Mar/23 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(data-service): apply readPref to initial `ping` command COMPASS-6595 (#4140)

Otherwise, connecting to a secondary-only replset with
`?readPreference=secondary` fails in Compass.

As a drive-by, this also applies the same logic to the `killSessions`
helper method.
Branch: main
https://github.com/mongodb-js/compass/commit/fc8fd38528c9266bbb7a0c7a8e17cfab70d5460f

Comment by Githook User [ 09/Mar/23 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(data-service): apply readPref to initial `ping` command COMPASS-6595

Otherwise, connecting to a secondary-only replset with
`?readPreference=secondary` fails in Compass.

As a drive-by, this also applies the same logic to the `killSessions`
helper method.
Branch: 6595-dev
https://github.com/mongodb-js/compass/commit/4adef56d4b39e60c95006bb407b55a41d8d21d3b

Generated at Wed Feb 07 22:43:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.