Adding SECONDARY_READS
meta flag to the query does not affect the readPreference
#4676
Labels
status: feedback-provided
Feedback has been provided
status: waiting-for-triage
An issue we've not yet triaged
type: documentation
A documentation update
Expected behavior:
When I add the
SECONDARY_READS
meta flag using the annotation@Meta(flags = { SECONDARY_READS })
or when.allowSecondaryReads()
is invoked on a query, the read preference should be set assecondary
orsecondaryPreferred
.Actual behaviour:
When I add the
SECONDARY_READS
meta flag using the annotation@Meta(flags = { SECONDARY_READS })
or when.allowSecondaryReads()
is invoked on a query, the read preference is instead set asprimaryPreferred
.Is this the intended behavior?
Root cause:
The unit test to reproduce the potential bug discovered:
The text was updated successfully, but these errors were encountered: