[JAVA-2666] Add option for applications to register a custom server selector Created: 15/Nov/17  Updated: 29/Oct/23  Resolved: 17/Nov/17

Status: Closed
Project: Java Driver
Component/s: Cluster Management, Configuration
Affects Version/s: None
Fix Version/s: 3.6.0

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-486 Add option for applications to regist... Implementing
Related
is related to JAVA-2582 Make predefined ReadPreferences in Ta... Closed
Case:

 Description   

Allow configuration of an optional, application-provided function that augments the server selection rules. The function takes as a parameter a list of server descriptions representing the suitable servers for the read or write operation, and returns a list of server descriptions that should still be considered suitable.



 Comments   
Comment by Githook User [ 17/Nov/17 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}

Message: JAVA-2666: Make server selector test assertion a bit more lax
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/144f80e52a216ebf03a385a655b10f0e9f2349e9

Comment by Githook User [ 17/Nov/17 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}

Message: JAVA-2666: Fix a racy test
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/c8a81c4aa6366f385d13f5355427d786a4246d9d

Comment by Githook User [ 17/Nov/17 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}

Message: JAVA-2666: Allow an application to register a server selector that is applied after the suitable servers are selected and before servers within the latency window are selected
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/8d661c030ecd72b1fdd98086955c749175edbe7f

Generated at Thu Feb 08 08:57:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.