mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-11 06:18:27 +01:00
fix: CP13-8 — use correct assert params + add pgbench TPS gate
1. assert_contains: change actual/expected to value/contains (matches the action implementation in system.go) 2. Add assert_greater for pgbench TPS > 0 after pgbench_run (closes the pgbench durability pass criterion in the doc) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d7cd415714
commit
2c305f9e7f
1 file changed
+6
-3
+6
-3
@@ -186,8 +186,8 @@ phases:
|
||||
cmd: "md5sum /mnt/cp13-8/file_* | sort > /tmp/cp13-8-checksums-post.txt && diff /tmp/cp13-8-checksums.txt /tmp/cp13-8-checksums-post.txt && echo MATCH"
|
||||
save_as: checksum_match
|
||||
- action: assert_contains
|
||||
actual: "{{ checksum_match }}"
|
||||
expected: "MATCH"
|
||||
value: "{{ checksum_match }}"
|
||||
contains: "MATCH"
|
||||
- action: umount
|
||||
node: client_node
|
||||
mountpoint: /mnt/cp13-8
|
||||
@@ -216,7 +216,10 @@ phases:
|
||||
save_as: tps_post_failover
|
||||
- action: print
|
||||
msg: "CP13-8: pgbench TPC-B post-failover: {{ tps_post_failover }} TPS"
|
||||
# pgbench succeeded = database transactions are durable on the promoted replica.
|
||||
- action: assert_greater
|
||||
value: "{{ tps_post_failover }}"
|
||||
threshold: "0"
|
||||
# pgbench succeeded with TPS > 0 = database transactions are durable on the promoted replica.
|
||||
- action: pgbench_cleanup
|
||||
node: client_node
|
||||
mount: "/mnt/cp13-8-pg"
|
||||
|
||||
Reference in new issue
Block a user