[JAVA-460] Change ReadPreference.PRIMARY to fallback to secondaries Created: 26/Oct/11  Updated: 15/Dec/11  Resolved: 14/Dec/11

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: 2.7.1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Malte Finsterwalder Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change

 Description   

When there is no primary available, it falls back to reading from a secondary.



 Comments   
Comment by Scott Hernandez (Inactive) [ 15/Dec/11 ]

The state during an election isn't easy to detect from clients. It just looks like there is no primary, much like the other state.

There is a request for a ReadPreference.Primary_First you can track here: SERVER-4464

Comment by Malte Finsterwalder [ 14/Dec/11 ]

I think you missunderstood.
I meant a situation, where the system tried an election and found that it is not possible to elect anything, since there is no majority left. So after a failed election, not during an election, would this switch occur.

Comment by Malte Finsterwalder [ 09/Dec/11 ]

It might be better to not change the existing setting, but introduce a new setting.
Like: ReadPreference.PRIMARY_WITH_SECONDARY_FALLBACK or something.

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