diff --git a/buildscripts/resmokeconfig/suites/causally_consistent_jscore_passthrough.yml b/buildscripts/resmokeconfig/suites/causally_consistent_jscore_passthrough.yml index 25b3fd4..138a8a6 100644 --- a/buildscripts/resmokeconfig/suites/causally_consistent_jscore_passthrough.yml +++ b/buildscripts/resmokeconfig/suites/causally_consistent_jscore_passthrough.yml @@ -189,8 +189,8 @@ executor: num_rs_nodes_per_shard: 2 # TODO SERVER-32572 remove voting_secondaries: true shard_options: - voting_secondaries: true + voting_secondaries: false configsvr_options: - voting_secondaries: true + voting_secondaries: false enable_sharding: - test diff --git a/repro.js b/repro.js new file mode 100644 index 0000000..3605a25 --- /dev/null +++ b/repro.js @@ -0,0 +1,27 @@ +// repro.js +(function(original) { + Mongo.prototype.runCommand = function traceRunCommand(dbName, commandObj, options) { + jsTest.log(tojson(commandObj)); + return original.apply(this, arguments); + }; +})(Mongo.prototype.runCommand); + +function logClusterTime(prefix, res) { + jsTest.log( + prefix + ": " + + tojson({operationTime: res.operationTime, clusterTime: res.$clusterTime.clusterTime})); +} + +let res = assert.commandWorked(db.runCommand({insert: "mycoll", documents: [{_id: 0}]})); +logClusterTime("After doing insert", res); +assert.eq(1, res.n, "insert should have succeeded"); + +res = assert.commandWorked(db.runCommand({ + query: { + find: "mycoll", + limit: 1, + singleBatch: true, + }, + $readPreference: {mode: "secondary"} +})); +logClusterTime("After doing find", res); \ No newline at end of file