Fix PG_INCOMPLETE on node outage when allow_net_split is false

This commit is contained in:
Vitaliy Filippov
2025-11-07 21:56:56 +03:00
parent aa1e51de5f
commit 15eef27d44
4 changed files with 53 additions and 1 deletions
+2
View File
@@ -36,6 +36,8 @@ SCHEME=ec ./test_snapshot.sh
./test_move_reappear.sh
./test_degraded.sh
./test_rm.sh
./test_rm_degraded.sh
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash -ex
OSD_COUNT=0
PG_COUNT=32
PG_SIZE=3
PG_MINSIZE=2
POOLCFG='"failure_domain":"host",'
. `dirname $0`/run_3osds.sh
$ETCDCTL put /vitastor/config/node_placement '{"1":{"parent":"host1"},"2":{"parent":"host2"},"3":{"parent":"host3"},"4":{"parent":"host1"},"5":{"parent":"host2"},"6":{"parent":"host3"},"host1":{"level":"host"},"host2":{"level":"host"}}'
OSD_COUNT=6
for i in $(seq 1 $OSD_COUNT); do
start_osd $i
done
wait_up 120
LD_PRELOAD="build/src/client/libfio_vitastor.so" \
fio -thread -name=test -ioengine=build/src/client/libfio_vitastor.so -bs=4k -direct=1 -iodepth=4 -rw=randwrite -loops=1000 \
-etcd=$ETCD_URL -pool=1 -inode=2 -size=256M -cluster_log_level=10 -runtime=5 &
FIO_PID=$!
sleep 15
kill -9 $OSD1_PID $OSD4_PID
wait $FIO_PID
format_green OK