Sha256: 17e79e27a405e325d56fec0215533cfd53c9da6ee353d02b42ae6c4d2354697e

Contents?: true

Size: 509 Bytes

Versions: 90

Compression:

Stored size: 509 Bytes

Contents

# Attempt to select the secondary, except its tag doesn't match.
# Fall back to primary.
---
topology_description:
  type: ReplicaSetWithPrimary
  servers:
  - &1
    address: a:27017
    avg_rtt_ms: 5
    type: RSPrimary
    tags:
      data_center: nyc
  - &2
    address: b:27017
    avg_rtt_ms: 5
    type: RSSecondary
    tags:
      data_center: sf  # No match.
operation: read
read_preference:
  mode: SecondaryPreferred
  tag_sets:
  - data_center: nyc
suitable_servers:
- *1
in_latency_window:
- *1

Version data entries

90 entries across 88 versions & 3 rubygems

Version Path
mongo-2.12.2 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.10.5 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.11.5 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.13.0.beta1 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.12.1 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.12.0.rc0 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.11.4 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.10.4 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.11.3 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.11.2 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.11.1 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.10.3 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.11.0 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.9.2 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.10.2 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.11.0.rc0 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.10.1 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.10.0 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.9.1 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.10.0.rc0 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml