mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
The change of this PR's 22 commits, carried onto current main as one commit (its base was 1884 commits behind). Fitted to main: - pacing: main's rule that fallback-only leases are not paced stays; a healthy lease is paced at the budget over the held normal and urgent slots (this PR's rule) instead of over the configured slot count. TestFallbackDoesNotUnpaceAHealthyLease keeps its property (a healthy lease beside a fallback lease is paced) with a 500 ms deadline, since a lone holder now gets the whole budget. - the cut loop keeps main's attempted hook and afterStaging (a failed attempt that staged new chunks retries at the next poll), with the ticket handling; the random retry delay is gone, as this PR intends. - imports and constants: neither side's removed ones return. - invariants: main's new rows and this PR's new and restated rows; the slot-wait row is this PR's (ticket order, the next poll). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
2.0 KiB
Bash
Executable File
45 lines
2.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Model-check one configuration with TLC.
|
|
#
|
|
# usage: ./run.sh <cfg-name> [extra TLC args]
|
|
# e.g. ./run.sh Fix_token
|
|
# TLA2TOOLS=/opt/tla/tla2tools.jar WORKERS=8 HEAP=8g ./run.sh S6_design
|
|
#
|
|
# The spec is chosen from the cfg name prefix (see README.md). Output goes to
|
|
# stdout. TLC writes its state files under ./states/ (safe to delete).
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
|
|
cfg=${1:?usage: ./run.sh <cfg-name> [extra TLC args]}
|
|
shift
|
|
|
|
case $cfg in
|
|
Bug_*) spec=ChunkLifecycle ;;
|
|
Fix_*) spec=ChunkLifecycleFixed ;;
|
|
W4_*|RED_*) spec=WorkspaceTakeover ;;
|
|
S3_wal_*|S3v*|S3r_*|S3m_*|S3f_*) spec=WALRecovery ;;
|
|
S3_sw*) spec=SmartWALRecovery ;;
|
|
S3_rep_*) spec=WALReplica ;;
|
|
S4b_*) spec=CutPipeline ;;
|
|
S4c_*) spec=CutCOW ;;
|
|
S4_*) spec=CutCapture ;;
|
|
S5_*) spec=ControlPlane ;;
|
|
S6_*) spec=ReplicationFailover ;;
|
|
R293_review_*) spec=ReplicaReviewGuards ;;
|
|
R293_prefix_*) spec=ReplicaPrefixFloor ;;
|
|
R292_*) spec=ReplicaApplyOrder ;;
|
|
S9b_*) spec=RetentionGCMulti ;;
|
|
S9_*) spec=RetentionGCTiming ;;
|
|
HostTickets_*) spec=HostTickets ;;
|
|
*) echo "run.sh: no spec for config '$cfg'" >&2; exit 2 ;;
|
|
esac
|
|
|
|
jar=${TLA2TOOLS:-tla2tools.jar}
|
|
[ -f "$jar" ] || { echo "run.sh: $jar not found; set TLA2TOOLS (see README.md)" >&2; exit 2; }
|
|
|
|
# -deadlock: deadlock checking off. Several specs have a process that loops
|
|
# forever (the GC), and bounded models legitimately stop at their bounds.
|
|
exec java -XX:+UseParallelGC "-Xmx${HEAP:-4g}" -cp "$jar" tlc2.TLC \
|
|
-config "cfg/$cfg.cfg" -deadlock -workers "${WORKERS:-auto}" \
|
|
-metadir "states/$cfg" "$@" "$spec.tla"
|