Skip to content

Commit 0c86f31

Browse files
Add comments to createIndex operations
1 parent 8329c1c commit 0c86f31

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

source/client-side-operations-timeout/tests/deprecated-options.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3743,6 +3743,8 @@ tests:
37433743
failCommands: ["dropIndexes"]
37443744
blockConnection: true
37453745
blockTimeMS: 5
3746+
# Create the index first so dropIndex doesn't return IndexNotFound on
3747+
# servers prior to 8.3.
37463748
- name: createIndex
37473749
object: *collection
37483750
arguments:
@@ -3782,6 +3784,8 @@ tests:
37823784
- session:
37833785
id: &session session
37843786
client: *client
3787+
# Create the index first so dropIndex doesn't return IndexNotFound on
3788+
# servers prior to 8.3.
37853789
- name: createIndex
37863790
object: *collection
37873791
arguments:
@@ -3835,6 +3839,8 @@ tests:
38353839
- session:
38363840
id: &session session
38373841
client: *client
3842+
# Create the index first so dropIndex doesn't return IndexNotFound on
3843+
# servers prior to 8.3.
38383844
- name: createIndex
38393845
object: *collection
38403846
arguments:
@@ -3896,6 +3902,8 @@ tests:
38963902
failCommands: ["dropIndexes"]
38973903
blockConnection: true
38983904
blockTimeMS: 5
3905+
# Create the index first so dropIndex doesn't return IndexNotFound on
3906+
# servers prior to 8.3.
38993907
- name: createIndex
39003908
object: *collection
39013909
arguments:

source/client-side-operations-timeout/tests/global-timeoutMS.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3120,6 +3120,8 @@ tests:
31203120
failCommands: ["dropIndexes"]
31213121
blockConnection: true
31223122
blockTimeMS: 15
3123+
# Create the index first so dropIndex doesn't return IndexNotFound on
3124+
# servers prior to 8.3.
31233125
- name: createIndex
31243126
object: *collection
31253127
arguments:

source/client-side-operations-timeout/tests/override-collection-timeoutMS.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,6 +1745,8 @@ tests:
17451745
failCommands: ["dropIndexes"]
17461746
blockConnection: true
17471747
blockTimeMS: 15
1748+
# Create the index first so dropIndex doesn't return IndexNotFound on
1749+
# servers prior to 8.3.
17481750
- name: createIndex
17491751
object: *collection
17501752
arguments:
@@ -1790,6 +1792,8 @@ tests:
17901792
failCommands: ["dropIndexes"]
17911793
blockConnection: true
17921794
blockTimeMS: 15
1795+
# Create the index first so dropIndex doesn't return IndexNotFound on
1796+
# servers prior to 8.3.
17931797
- name: createIndex
17941798
object: *collection
17951799
arguments:

source/client-side-operations-timeout/tests/override-database-timeoutMS.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2343,6 +2343,8 @@ tests:
23432343
failCommands: ["dropIndexes"]
23442344
blockConnection: true
23452345
blockTimeMS: 15
2346+
# Create the index first so dropIndex doesn't return IndexNotFound on
2347+
# servers prior to 8.3.
23462348
- name: createIndex
23472349
object: *collection
23482350
arguments:
@@ -2392,6 +2394,8 @@ tests:
23922394
failCommands: ["dropIndexes"]
23932395
blockConnection: true
23942396
blockTimeMS: 15
2397+
# Create the index first so dropIndex doesn't return IndexNotFound on
2398+
# servers prior to 8.3.
23952399
- name: createIndex
23962400
object: *collection
23972401
arguments:

source/client-side-operations-timeout/tests/override-operation-timeoutMS.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,6 +1812,8 @@ tests:
18121812
failCommands: ["dropIndexes"]
18131813
blockConnection: true
18141814
blockTimeMS: 15
1815+
# Create the index first so dropIndex doesn't return IndexNotFound on
1816+
# servers prior to 8.3.
18151817
- name: createIndex
18161818
object: *collection
18171819
arguments:
@@ -1849,6 +1851,8 @@ tests:
18491851
failCommands: ["dropIndexes"]
18501852
blockConnection: true
18511853
blockTimeMS: 15
1854+
# Create the index first so dropIndex doesn't return IndexNotFound on
1855+
# servers prior to 8.3.
18521856
- name: createIndex
18531857
object: *collection
18541858
arguments:

0 commit comments

Comments
 (0)