2021-02-22 00:07:05 +03:00
|
|
|
#!/bin/bash -ex
|
|
|
|
# Test the `no_same_sector_overwrites` mode
|
|
|
|
|
2022-09-19 01:12:33 +03:00
|
|
|
OSD_ARGS="--journal_no_same_sector_overwrites true --journal_sector_buffer_count 1024 --disable_data_fsync 1 --immediate_commit all $OSD_ARGS"
|
2021-06-14 23:11:50 +03:00
|
|
|
GLOBAL_CONF='{"immediate_commit":"all"}'
|
2021-02-22 00:07:05 +03:00
|
|
|
|
2021-06-14 23:11:50 +03:00
|
|
|
. `dirname $0`/run_3osds.sh
|
2021-02-22 00:07:05 +03:00
|
|
|
|
|
|
|
#LSAN_OPTIONS=report_objects=true:suppressions=`pwd`/testdata/lsan-suppress.txt LD_PRELOAD=libasan.so.5 \
|
|
|
|
# fio -thread -name=test -ioengine=build/src/libfio_vitastor_sec.so -bs=4k -fsync=128 `$ETCDCTL get /vitastor/osd/state/1 --print-value-only | jq -r '"-host="+.addresses[0]+" -port="+(.port|tostring)'` -rw=write -size=32M
|
|
|
|
|
|
|
|
# Test basic write
|
|
|
|
|
2022-05-05 02:11:34 +03:00
|
|
|
LD_PRELOAD="build/src/libfio_vitastor.so" \
|
2023-04-24 00:38:17 +03:00
|
|
|
fio -thread -name=test -ioengine=build/src/libfio_vitastor.so -bs=4M -direct=1 -iodepth=1 -rw=write -etcd=$ETCD_URL -pool=1 -inode=1 -size=128M -cluster_log_level=10
|
2021-02-22 00:07:05 +03:00
|
|
|
|
|
|
|
format_green OK
|