Skip to content

Commit 9957777

Browse files
committed
PHPC-1415: Disable retryWrites for non-RS sharded cluster on Evergreen
1 parent 331a7a1 commit 9957777

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.evergreen/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ functions:
326326
params:
327327
script: |
328328
${PREPARE_SHELL}
329-
MONGODB_VERSION=${VERSION} PROJECT_DIRECTORY=${PROJECT_DIRECTORY} DRIVERS_TOOLS=${DRIVERS_TOOLS} CONFIG=${CONFIG} TOPOLOGY=${TOPOLOGY} STORAGE_ENGINE=${STORAGE_ENGINE} sh ${PROJECT_DIRECTORY}/.evergreen/run-orchestration.sh
329+
MONGODB_VERSION=${VERSION} PROJECT_DIRECTORY=${PROJECT_DIRECTORY} DRIVERS_TOOLS=${DRIVERS_TOOLS} CONFIG=${CONFIG} TOPOLOGY=${TOPOLOGY} APPEND_URI=${APPEND_URI} STORAGE_ENGINE=${STORAGE_ENGINE} sh ${PROJECT_DIRECTORY}/.evergreen/run-orchestration.sh
330330
# run-orchestration generates expansion file with the MONGODB_URI for the cluster
331331
- command: expansions.update
332332
params:
@@ -543,6 +543,7 @@ tasks:
543543
vars:
544544
TOPOLOGY: "sharded_clusters"
545545
CONFIG: "cluster"
546+
APPEND_URI: "/?retryWrites=false"
546547
- func: "run tests"
547548

548549
- name: "test-sharded-rs"

.evergreen/run-orchestration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ cat "$ORCHESTRATION_FILE"
5151
curl --silent --show-error --data @"$ORCHESTRATION_FILE" "$ORCHESTRATION_URL" --max-time 600 --fail -o tmp.json
5252
cat tmp.json
5353
URI=$(python -c 'import sys, json; j=json.load(open("tmp.json")); print(j["mongodb_auth_uri" if "mongodb_auth_uri" in j else "mongodb_uri"])' | tr -d '\r')
54-
echo 'MONGODB_URI: "'$URI'"' > mo-expansion.yml
54+
echo 'MONGODB_URI: "'${URI}${APPEND_URI}'"' > mo-expansion.yml
5555
echo "Cluster URI: $URI"
5656

5757
MO_END=$(date +%s)

0 commit comments

Comments
 (0)