From 400fb2694641b05e53217d3c742a6e49e3a254c6 Mon Sep 17 00:00:00 2001 From: Valery Kharseko <vharseko@3a-systems.ru> Date: Sun, 29 Nov 2026 07:16:47 +0000 Subject: [PATCH] [#1208] Preserve replication history during scaling, recovery and shutdown (#1282) --- .github/scripts/replication/selftest-summary.sh | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/.github/scripts/replication/selftest-summary.sh b/.github/scripts/replication/selftest-summary.sh index 11a53ab..6de68ce 100755 --- a/.github/scripts/replication/selftest-summary.sh +++ b/.github/scripts/replication/selftest-summary.sh @@ -55,5 +55,27 @@ echo "400000 435000 d1 $how" >"$OUT/disturbances.txt" check "$DISTURBANCE completed" "| disturbance | $how of d1 300 s into the load, serving again 35 s later |" done +# The post-load failover must remain visible even if only one RS was checked. +DISTURBANCE=empty-rs DISTURB_STEPS=1 CONVERGED_IN=10 +printf 'r0 r1 450\n' >"$OUT/failover.txt" +summarize failed +checks=$((checks + 1)) +if ! grep -Fx '| failover | stopped r0; all directory servers connected to r1 after 450 s |' "$OUT/summary.md" >/dev/null \ + || ! grep -Fx '| failover | incomplete: 1 of 2 replication servers checked |' "$OUT/summary.md" >/dev/null; then + echo '::error::partial failover is absent from the summary' + failed=$((failed + 1)) +fi +# The measured backlog belongs in the CI summary, not only the uploaded artifact. +DISTURBANCE=scale-rs-empty DISTURB_STEPS=1 +printf '400000 900000 r1 scale-empty\n' >"$OUT/disturbances.txt" +check 'scale completed' '| disturbance | scale-empty of r1 300 s into the load, completed 500 s later |' +mkdir -p "$OUT/scale-checkpoint" +echo '50001 changes while the server was absent' >"$OUT/scale-checkpoint/backlog.txt" +summarize passed +checks=$((checks + 1)) +if ! grep -Fx '| scale backlog | 50001 changes while the server was absent |' "$OUT/summary.md" >/dev/null; then + echo '::error::scale backlog is absent from the summary'; failed=$((failed + 1)) +fi + echo "summary: $((checks - failed)) checks passed, $failed failed" [ "$failed" -eq 0 ] -- Gitblit v1.10.0