2021-06-25 01:45:51 +02:00
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
|
2021-05-03 15:03:26 +02:00
|
|
|
. "$DIR/prelude.sh"
|
|
|
|
|
|
|
|
cd src/jepsen-mongodb
|
|
|
|
|
|
|
|
set -o verbose
|
|
|
|
|
|
|
|
# Set the TMPDIR environment variable to be a directory in the task's working
|
|
|
|
# directory so that temporary files created by processes spawned by jepsen get
|
|
|
|
# cleaned up after the task completes. This also ensures the spawned processes
|
|
|
|
# aren't impacted by limited space in the mount point for the /tmp directory.
|
|
|
|
# We also need to set the _JAVA_OPTIONS environment variable so that lein will
|
|
|
|
# recognize this as the default temp directory.
|
|
|
|
export TMPDIR="${workdir}/tmp"
|
|
|
|
mkdir -p $TMPDIR
|
|
|
|
export _JAVA_OPTIONS=-Djava.io.tmpdir=$TMPDIR
|
|
|
|
|
|
|
|
start_time=$(date +%s)
|
2022-05-24 19:03:17 +02:00
|
|
|
# XXX Do not run this test in a loop or with Jepsen's repeat flag
|
|
|
|
# the report generator (jepsen_report.sh) does not support parsing more than one
|
|
|
|
# test at a time. If you need to run these tests with a repeat flag, you
|
|
|
|
# will need to adopt buildscripts/jepsen_report.py to support the log output
|
|
|
|
# of older-style Jepsen tests
|
2021-05-03 15:03:26 +02:00
|
|
|
lein run test --test ${jepsen_test_name} \
|
|
|
|
--mongodb-dir ../ \
|
|
|
|
--working-dir ${workdir}/src/jepsen-workdir \
|
|
|
|
--clock-skew faketime \
|
|
|
|
--libfaketime-path ${workdir}/src/libfaketime/build/libfaketime.so.1 \
|
|
|
|
--virtualization none \
|
|
|
|
--nodes-file ../nodes.txt \
|
2023-07-18 20:18:19 +02:00
|
|
|
${mongod_conf} \
|
2021-05-03 15:03:26 +02:00
|
|
|
${jepsen_key_time_limit} \
|
|
|
|
${jepsen_protocol_version} \
|
|
|
|
${jepsen_read_concern} \
|
|
|
|
${jepsen_read_with_find_and_modify} \
|
|
|
|
${jepsen_storage_engine} \
|
|
|
|
${jepsen_time_limit} \
|
|
|
|
${jepsen_write_concern} \
|
|
|
|
2>&1 \
|
|
|
|
| tee jepsen_${task_name}_${execution}.log
|
|
|
|
end_time=$(date +%s)
|
|
|
|
elapsed_secs=$((end_time - start_time))
|
2021-09-22 21:12:55 +02:00
|
|
|
. ../evergreen/jepsen_report.sh
|