summaryrefslogtreecommitdiff
path: root/jstests/sharding
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2018-02-01 05:32:30 +0000
committerKevin Pulo <kevin.pulo@mongodb.com>2018-02-01 05:32:30 +0000
commit4ec29b020efe0909b561b671f4f4cd202a4d8bab (patch)
tree86ff0390c8012332ea3f77ed00e6e1d9682b29e3 /jstests/sharding
parent0acb8be92a5af1ee844d389b67a6d4b4bd387b9c (diff)
downloadmongo-4ec29b020efe0909b561b671f4f4cd202a4d8bab.tar.gz
SERVER-18971 log command success/failure
Diffstat (limited to 'jstests/sharding')
-rw-r--r--jstests/sharding/change_stream_read_preference.js2
-rw-r--r--jstests/sharding/change_stream_update_lookup_read_concern.js4
-rw-r--r--jstests/sharding/explain_agg_read_pref.js4
-rw-r--r--jstests/sharding/safe_secondary_reads_drop_recreate.js24
-rw-r--r--jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js16
-rw-r--r--jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js10
-rw-r--r--jstests/sharding/secondary_shard_version_protocol_with_causal_consistency.js6
-rw-r--r--jstests/sharding/secondary_shard_versioning.js6
8 files changed, 36 insertions, 36 deletions
diff --git a/jstests/sharding/change_stream_read_preference.js b/jstests/sharding/change_stream_read_preference.js
index 572ecf82424..8f1008996be 100644
--- a/jstests/sharding/change_stream_read_preference.js
+++ b/jstests/sharding/change_stream_read_preference.js
@@ -121,7 +121,7 @@
// We need to filter out any profiler entries with a stale config - this is the
// first read on this secondary with a readConcern specified, so it is the first
// read on this secondary that will enforce shard version.
- exceptionCode: {$ne: ErrorCodes.StaleConfig}
+ errCode: {$ne: ErrorCodes.StaleConfig}
}
});
}
diff --git a/jstests/sharding/change_stream_update_lookup_read_concern.js b/jstests/sharding/change_stream_update_lookup_read_concern.js
index f90e51fd17c..55ee230e59e 100644
--- a/jstests/sharding/change_stream_update_lookup_read_concern.js
+++ b/jstests/sharding/change_stream_update_lookup_read_concern.js
@@ -105,7 +105,7 @@
// We need to filter out any profiler entries with a stale config - this is the first
// read on this secondary with a readConcern specified, so it is the first read on this
// secondary that will enforce shard version.
- exceptionCode: {$ne: ErrorCodes.StaleConfig}
+ errCode: {$ne: ErrorCodes.StaleConfig}
},
errorMsgFilter: {ns: mongosColl.getFullName()},
errorMsgProj: {ns: 1, op: 1, command: 1},
@@ -195,7 +195,7 @@
// We need to filter out any profiler entries with a stale config - this is the first
// read on this secondary with a readConcern specified, so it is the first read on this
// secondary that will enforce shard version.
- exceptionCode: {$ne: ErrorCodes.StaleConfig}
+ errCode: {$ne: ErrorCodes.StaleConfig}
}
});
diff --git a/jstests/sharding/explain_agg_read_pref.js b/jstests/sharding/explain_agg_read_pref.js
index 12bfe136c8d..820ab9799cc 100644
--- a/jstests/sharding/explain_agg_read_pref.js
+++ b/jstests/sharding/explain_agg_read_pref.js
@@ -93,7 +93,7 @@
"command.explain.aggregate": coll.getName(),
"command.explain.comment": comment,
"command.$readPreference.mode": pref == 'primary' ? null : pref,
- "exception": {"$exists": false}
+ "errMsg": {"$exists": false}
}
});
@@ -129,7 +129,7 @@
"command.explain.aggregate": coll.getName(),
"command.explain.comment": comment,
"command.$readPreference.mode": pref == 'primary' ? null : pref,
- "exception": {"$exists": false}
+ "errMsg": {"$exists": false}
}
});
});
diff --git a/jstests/sharding/safe_secondary_reads_drop_recreate.js b/jstests/sharding/safe_secondary_reads_drop_recreate.js
index 3f3d208fecb..b510fc00105 100644
--- a/jstests/sharding/safe_secondary_reads_drop_recreate.js
+++ b/jstests/sharding/safe_secondary_reads_drop_recreate.js
@@ -382,7 +382,7 @@
"command.shardVersion": {"$exists": false},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
@@ -395,7 +395,7 @@
"command.shardVersion": {"$exists": false},
"command.$readPreference": {$exists: false},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$exists": false},
+ "errCode": {"$exists": false}
},
commandProfile)
});
@@ -407,7 +407,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": ErrorCodes.StaleConfig
+ "errCode": ErrorCodes.StaleConfig
},
commandProfile)
});
@@ -420,7 +420,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
@@ -460,7 +460,7 @@
"command.shardVersion": {"$exists": false},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
@@ -473,7 +473,7 @@
"command.shardVersion": {"$exists": false},
"command.$readPreference": {$exists: false},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$exists": false},
+ "errCode": {"$exists": false},
},
commandProfile)
});
@@ -485,7 +485,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": ErrorCodes.StaleConfig
+ "errCode": ErrorCodes.StaleConfig
},
commandProfile)
});
@@ -498,7 +498,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
@@ -551,7 +551,7 @@
"command.shardVersion": {"$exists": false},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
@@ -564,7 +564,7 @@
"command.shardVersion": {"$exists": false},
"command.$readPreference": {$exists: false},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$exists": false},
+ "errCode": {"$exists": false},
},
commandProfile)
});
@@ -576,7 +576,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": ErrorCodes.StaleConfig
+ "errCode": ErrorCodes.StaleConfig
},
commandProfile)
});
@@ -589,7 +589,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
diff --git a/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js b/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js
index 1374cd7ed25..2a399f279a5 100644
--- a/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js
+++ b/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js
@@ -497,7 +497,7 @@
"command.shardVersion": {"$exists": false},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": 'available'},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
@@ -507,7 +507,7 @@
"command.shardVersion": {"$exists": false},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
@@ -524,7 +524,7 @@
"command.shardVersion": {"$exists": false},
"command.$readPreference": {$exists: false},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$exists": false},
+ "errCode": {"$exists": false},
},
commandProfile)
});
@@ -538,7 +538,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "available"},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
@@ -548,7 +548,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"$exists": false},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
@@ -561,7 +561,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": ErrorCodes.StaleConfig
+ "errCode": ErrorCodes.StaleConfig
},
commandProfile)
});
@@ -575,7 +575,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": ErrorCodes.StaleConfig
+ "errCode": ErrorCodes.StaleConfig
},
commandProfile)
});
@@ -588,7 +588,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
diff --git a/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js b/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js
index 2043f08e273..e0c803ff3be 100644
--- a/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js
+++ b/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js
@@ -437,7 +437,7 @@
"command.shardVersion": {"$exists": false},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
@@ -454,7 +454,7 @@
"command.shardVersion": {"$exists": false},
"command.$readPreference": {$exists: false},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$exists": false},
+ "errCode": {"$exists": false},
},
commandProfile)
});
@@ -466,7 +466,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": ErrorCodes.StaleConfig
+ "errCode": ErrorCodes.StaleConfig
},
commandProfile)
});
@@ -480,7 +480,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": ErrorCodes.StaleConfig
+ "errCode": ErrorCodes.StaleConfig
},
commandProfile)
});
@@ -493,7 +493,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$ne": ErrorCodes.StaleConfig},
+ "errCode": {"$ne": ErrorCodes.StaleConfig},
},
commandProfile)
});
diff --git a/jstests/sharding/secondary_shard_version_protocol_with_causal_consistency.js b/jstests/sharding/secondary_shard_version_protocol_with_causal_consistency.js
index 17c36b3d80d..d1da3e396d0 100644
--- a/jstests/sharding/secondary_shard_version_protocol_with_causal_consistency.js
+++ b/jstests/sharding/secondary_shard_version_protocol_with_causal_consistency.js
@@ -79,7 +79,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern.afterClusterTime": {"$exists": true},
- "exceptionCode": ErrorCodes.StaleConfig
+ "errCode": ErrorCodes.StaleConfig
}
});
@@ -94,7 +94,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern.afterClusterTime": {"$exists": true},
- "exceptionCode": ErrorCodes.StaleConfig
+ "errCode": ErrorCodes.StaleConfig
}
});
@@ -108,7 +108,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern.afterClusterTime": {"$exists": true},
- "exceptionCode": {"$exists": false}
+ "errCode": {"$exists": false}
}
});
diff --git a/jstests/sharding/secondary_shard_versioning.js b/jstests/sharding/secondary_shard_versioning.js
index 79a7b942055..ebe7af3bc17 100644
--- a/jstests/sharding/secondary_shard_versioning.js
+++ b/jstests/sharding/secondary_shard_versioning.js
@@ -62,7 +62,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": ErrorCodes.StaleConfig
+ "errCode": ErrorCodes.StaleConfig
}
});
@@ -77,7 +77,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": ErrorCodes.StaleConfig
+ "errCode": ErrorCodes.StaleConfig
}
});
@@ -91,7 +91,7 @@
"command.shardVersion": {"$exists": true},
"command.$readPreference": {"mode": "secondary"},
"command.readConcern": {"level": "local"},
- "exceptionCode": {"$exists": false}
+ "errCode": {"$exists": false}
}
});