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.21.0 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.20.1 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mogno-2.20.0 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mogno-1.0.0 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.20.0 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.19.3 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.16.4 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.17.4 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.18.3 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.19.2 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.19.1 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.19.0 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.18.2 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.17.3 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.18.1 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.18.0 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.17.2 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.16.3 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.18.0.beta1 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
mongo-2.16.2 spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml