Skip to content

Instantly share code, notes, and snippets.

View DiannaHohensee's full-sized avatar

Dianna Hohensee DiannaHohensee

View GitHub Profile
/**
* SERVER-75922: Test that partial index entries inserted in the old v4.0 format can be correctly
* deleted in new servers in the new format.
*/
(function() {
"strict";
const dbName = jsTestName();
const collName = "mycoll";
~/mongo (master)*$ ninja -j400 install-mongod
[311/3072 ( 10%) 25.904s] Compiled build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.dyn.o
FAILED: build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.dyn.o
rm -f build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.dyn.o; export CCACHE_NOCPP2='1';export CCACHE_PREFIX='/home/ubuntu/mongo/build/scons/icecream/7a67446c/run-icecc.sh';export ICECC_CLANG_REMOTE_CPP='1';export PATH='/opt/mongodbtoolchain/v4/bin:/usr/local/bin:/opt/bin:/bin:/usr/bin';/opt/mongodbtoolchain/v4/bin/ccache /opt/mongodbtoolchain/v4/bin/clang++ @build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.dyn.o.rsp
In file included from build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.cpp:9:
In file included from build/7a67446c/mongo/db/modules/enterprise/src/search/search_index_options_gen.h:28:
src/mongo/db/server_parameter_with_storage.h:392:16: error: no matchi
#!/bin/sh
# Invocation to get all the validate logs for the groupIds/ClusterNames present in a .csv file using this script:
# awk -F',' '{ if (NR>1) atlas_cmd="./script.sh "$1" "$2" file-directory-name" system(atlas_cmd)}' input.csv
#
# The above invocation skips the first line (NR>1) because the first line of a .csv file is column names.
# Replace file-directory-name with whatever file directory the validate files should go in. For some reason
# the awk invocation adds a '0' to the end of the directory name.
#
# Requirements:
{
"pubkey": "mwzjjrzq",
"atlasUrl": "https://cloud.mongodb.com/",
"dir": "validateLogs"
}
jira:
username: "dianna.hohensee@mongodb.com"
password: "<...>"
url: "https://jira.mongodb.org"
access_token: "ldz3I7Hn9EX2Hl2uOtwNk9yr5DnV2JIS"
access_token_secret: "XKuHEcL2JJpJu0m0t3zY9tWMl0eBX8CE"
consumer_key: "B9pNZ2DbCfERSWstKo48lgUvj"
key_cert: |
-----BEGIN RSA PRIVATE KEY-----
.....
[js_test:validate_detects_invalid_index_options] d50040| {"t":{"$date":"2023-03-07T16:45:17.670+00:00"},"s":"I", "c":"INDEX", "id":20302, "ctx":"conn1","msg":"Validation complete -- Corruption found","attr":{"namespace":"test.validate_detects_invalid_index_options","uuid":{"uuid":{"$uuid":"82ad10f5-5032-45c1-8a23-d3027dd03fc0"}}}}
[js_test:validate_detects_invalid_index_options] d50040| {"t":{"$date":"2023-03-07T16:45:17.694+00:00"},"s":"I", "c":"COMMAND", "id":7463200, "ctx":"conn1","msg":"Corrupt namespace $collStats results","attr":{"namespace":"test.validate_detects_invalid_index_options","collStats":{"0":{"ns":"test.validate_detects_invalid_index_options","host":"ip-10-122-6-168:50040","localTime":{"$date":"2023-03-07T16:45:17.685Z"},"storageStats":{"size":0,"count":0,"numOrphanDocs":0,"storageSize":4096,"freeStorageSize":0,"capped":false,"wiredTiger":{"metadata":{"formatVersion":1},"creationString":"access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert=(commit_timest
[js_test:validate_detects_invalid_index_options] d50040| {"t":{"$date":"2023-03-07T15:40:11.666+00:00"},"s":"I", "c":"INDEX", "id":20302, "ctx":"conn1","msg":"Validation complete -- Corruption found","attr":{"namespace":"test.validate_detects_invalid_index_options","uuid":{"uuid":{"$uuid":"50e63915-8525-40d9-9c82-22996b1b57d0"}}}}
[js_test:validate_detects_invalid_index_options] d50040| {"t":{"$date":"2023-03-07T15:40:11.690+00:00"},"s":"I", "c":"COMMAND", "id":7463200, "ctx":"conn1","msg":"Corrupt namespace $collStats results","attr":{"namespace":"test.validate_detects_invalid_index_options","collStats":{"0":{"ns":"test.validate_detects_invalid_index_options","host":"ip-10-122-6-168:50040","localTime":{"$date":"2023-03-07T15:40:11.680Z"},"storageStats":{"size":0,"count":0,"numOrphanDocs":0,"storageSize":4096,"freeStorageSize":0,"capped":false,"wiredTiger":{"metadata":{"formatVersion":1},"creationString":"access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert=(commit_timest
[js_test:validate_detects_invalid_index_options] d50040| {"t":{"$date":"2023-03-06T21:57:15.698+00:00"},"s":"I", "c":"INDEX", "id":20302, "ctx":"conn1","msg":"Validation complete -- Corruption found","attr":{"namespace":"test.validate_detects_invalid_index_options","uuid":{"uuid":{"$uuid":"aaf4f3c6-c96b-43aa-951f-1e042a056df2"}}}}
[js_test:validate_detects_invalid_index_options] d50040| {"t":{"$date":"2023-03-06T21:57:15.725+00:00"},"s":"I", "c":"COMMAND", "id":7463200, "ctx":"conn1","msg":"Corrupt namespace $collStats results","attr":{"namespace":"test.validate_detects_invalid_index_options","collStats":"{ cursor: { firstBatch: [ { ns: \"test.validate_detects_invalid_index_options\", host: \"ip-10-122-6-168:50040\", localTime: new Date(1678139835714), storageStats: { size: 0, count: 0, numOrphanDocs: 0, storageSize: 4096, freeStorageSize: 0, capped: false, wiredTiger: { metadata: { formatVersion: 1 }, creationString: \"access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert
Profiler:
[jsTest] ----
[jsTest] ~~~: [
[jsTest] {
[jsTest] "op" : "update",
[jsTest] "ns" : "testDB.slow_query_oplog_slot_duration",
[jsTest] "command" : {
[jsTest] "q" : {
diff --git a/buildscripts/timeouts/timeout.py b/buildscripts/timeouts/timeout.py
index 45160de80e4..4c07fe4ab49 100644
--- a/buildscripts/timeouts/timeout.py
+++ b/buildscripts/timeouts/timeout.py
@@ -108,17 +108,17 @@ class TimeoutEstimate(NamedTuple):
test_timeout = self.calculate_test_timeout(repeat_factor, test_timeout_factor)
task_timeout = self.calculate_task_timeout(repeat_factor, task_timeout_factor)
- if is_patch and (test_timeout > MAX_EXPECTED_TIMEOUT
- or task_timeout > MAX_EXPECTED_TIMEOUT):