summaryrefslogtreecommitdiff
path: root/src/mongo/gotools/src/github.com/mongodb/mongo-tools/vendor/go.mongodb.org/mongo-driver/data/server-selection/server_selection/ReplicaSetNoPrimary/read/Secondary_multi_tags2.yml
blob: 3a4cb4f2aea4fa8d04e8e434b53d73501f649d59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Ensure clients select a server that matches all tags, even when the other
# server matches one tag and doesn't match the other.
---
topology_description:
  type: ReplicaSetNoPrimary
  servers:
  - &1
    address: b:27017
    avg_rtt_ms: 5
    type: RSSecondary
    tags:
      rack: one
      data_center: nyc
  - &2
    address: c:27017
    avg_rtt_ms: 5
    type: RSSecondary
    tags:
      rack: two           # mismatch
      data_center: nyc    # match
operation: read
read_preference:
  mode: Secondary
  tag_sets:
  - data_center: nyc
    rack: one
  - other_tag: doesntexist
suitable_servers:
- *1
in_latency_window:
- *1