Skip to content

Read Preference TagSet Support [DATAMONGO-1428] #2339

Closed as not planned
Closed as not planned
@spring-projects-issues

Description

@spring-projects-issues

George Cao opened DATAMONGO-1428 and commented

Right now, spring-data-mongodb does not support read preference with a tag set list. The mongo-client-options only support the built-in read preference.

For example, mongo-java-driver 3.0.2 ReadPreference has a static method to support read preference with tag sets.

public static TaggableReadPreference secondary(final List<TagSet> tagSetList) {
    return new TaggableReadPreference.SecondaryReadPreference(tagSetList);
}

Affects: 1.8.4 (Gosling SR4), 1.9.1 (Hopper SR1)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions