[SERVER-85907] Make replica set endpoint skip readPreference retargeting Created: 30/Jan/24  Updated: 07/Feb/24  Resolved: 06/Feb/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 8.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
Related
related to SERVER-85908 Add jscore passthrough testing for di... Closed
Backwards Compatibility: Fully Compatible
Sprint: Cluster Scalability 2024-2-5, Cluster Scalability 2024-2-19
Participants:
Linked BF Score: 154

 Description   

The replica set endpoint should skip readPreference targeting since:

  • For replica set connections, drivers must have already done readPreference targeting.
  • For direct connections, the reads must run on the mongod that the client is directly connecting to.


 Comments   
Comment by Githook User [ 06/Feb/24 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-85907 Make replica set endpoint reject writes on secondary (#18679)

GitOrigin-RevId: 61da798c4915fcfc6e220f7535699b3ee72b050d
Branch: master
https://github.com/mongodb/mongo/commit/5f0f53ee9909ce4c40bad3387317c52bcf2e7eac

Comment by Githook User [ 04/Feb/24 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}

Message: SERVER-85907 Disable featureFlagTrackUnshardedCollectionsOnShardingCatalog in skip_read_preference_retargeting.js

GitOrigin-RevId: e664f5a0d169ff94dcbdd169c3b24a6df6e3c350
Branch: master
https://github.com/mongodb/mongo/commit/e0aac3cf5d883f7cc11140c0fae11deb492c3ff3

Comment by Githook User [ 04/Feb/24 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}

Message: SERVER-85907 Make replica set endpoint skip readPreference retargeting

GitOrigin-RevId: aa3db914cbb9729e91afc05d2ffb509c22952760
Branch: master
https://github.com/mongodb/mongo/commit/96100814e7ba48d09df66d6522148e6f77f6727e

Comment by Githook User [ 04/Feb/24 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: Revert "SERVER-85907 Make replica set endpoint skip readPreference retargeting (#18514)"

This reverts commit 23c6dd59eb16c077742d5ab1e8fde55eb89566f2.

GitOrigin-RevId: 540aa2232a748678ae57e8fef1b46d7b3c3fd53f
Branch: master
https://github.com/mongodb/mongo/commit/af4debf226ed52d6be5c2731bde8a347791042f2

Comment by Githook User [ 02/Feb/24 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-85907 Disable featureFlagTrackUnshardedCollectionsOnShardingCatalog in skip_read_preference_retargeting.js (#18670)

GitOrigin-RevId: 746d28a64955495d9fca9003b5e175fdff041329
Branch: master
https://github.com/mongodb/mongo/commit/483aa07a98812eb2eb697a81be1dd3483fbcad9c

Comment by Githook User [ 02/Feb/24 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-85907 Make replica set endpoint skip readPreference retargeting (#18514)

GitOrigin-RevId: 23c6dd59eb16c077742d5ab1e8fde55eb89566f2
Branch: master
https://github.com/mongodb/mongo/commit/d4ea3d82f99abcd71baad8282dc6c0e6d6f6e17d

Generated at Thu Feb 08 06:58:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.