mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-03 02:32:35 +01:00
Durability mode implementation (sync_all, sync_quorum, best_effort): - DurabilityMode type with superblock persistence, parse/validate/string - MakeDistributedSync mode-aware barrier enforcement in dist_group_commit - blockerr sentinel package (ErrDurabilityBarrierFailed, ErrDurabilityQuorumLost) - gRPC create path: mode validation, idempotent create consistency, partial cleanup - F1: strict mode rejects partial replica provisioning with cleanup - F3: empty heartbeat does not overwrite persisted strict mode - F4: SCSI error mapping uses errors.Is sentinels (not string matching) - Proto/wire/blockapi/CLI/UI plumbing for durability_mode field - Observability dashboard: cluster health cards + per-volume columns Testrunner platform (YAML-driven integration test framework): - Engine, parser, registry, reporter (JUnit XML + HTML), metrics scraping - 52 registered actions: block, iSCSI, I/O, fault injection, assertions - Baseline regression framework with 7 hard-fail conditions - 15 YAML scenarios (smoke, crash, HA, fault, consistency, snapshot) - 49 unit tests for testrunner internals QA adversarial suite (21 tests, all PASS): - Idempotent create mode/RF mismatch detection - Heartbeat mode downgrade prevention (F3) - sync_all/sync_quorum partial replica enforcement (F1) - Concurrent create race safety - Failover/expand mode preservation - Cleanup resilience when delete fails - Master restart auto-register mode handling - Superblock roundtrip all 3 modes - Validate edge cases (mode×RF matrix) - RequiredReplicas quorum math verification - Sentinel error categorization Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
77 lines
1.5 KiB
YAML
77 lines
1.5 KiB
YAML
name: fault-disk-full
|
|
timeout: 5m
|
|
env:
|
|
repo_dir: "C:/work/seaweedfs"
|
|
|
|
topology:
|
|
nodes:
|
|
target_node:
|
|
host: "192.168.1.184"
|
|
user: testdev
|
|
key: "C:/work/dev_server/testdev_key"
|
|
client_node:
|
|
host: "192.168.1.181"
|
|
user: testdev
|
|
key: "C:/work/dev_server/testdev_key"
|
|
|
|
targets:
|
|
primary:
|
|
node: target_node
|
|
vol_size: 50M
|
|
iscsi_port: 3260
|
|
admin_port: 8080
|
|
iqn_suffix: fault-diskfull-primary
|
|
|
|
phases:
|
|
- name: setup
|
|
actions:
|
|
- action: build_deploy
|
|
- action: start_target
|
|
target: primary
|
|
create: "true"
|
|
- action: iscsi_login
|
|
target: primary
|
|
node: client_node
|
|
save_as: device
|
|
|
|
- name: fill_disk
|
|
actions:
|
|
- action: fill_disk
|
|
node: target_node
|
|
dir: /tmp
|
|
|
|
- name: write_fails
|
|
actions:
|
|
- action: dd_write
|
|
node: client_node
|
|
device: "{{ device }}"
|
|
bs: 1M
|
|
count: "1"
|
|
ignore_error: true
|
|
save_as: write_result
|
|
|
|
- name: clear_and_recover
|
|
actions:
|
|
- action: clear_fault
|
|
type: fill_disk
|
|
node: target_node
|
|
- action: dd_write
|
|
node: client_node
|
|
device: "{{ device }}"
|
|
bs: 4k
|
|
count: "1"
|
|
save_as: recovery_md5
|
|
|
|
- name: cleanup
|
|
always: true
|
|
actions:
|
|
- action: clear_fault
|
|
type: fill_disk
|
|
node: target_node
|
|
ignore_error: true
|
|
- action: iscsi_cleanup
|
|
node: client_node
|
|
ignore_error: true
|
|
- action: stop_all_targets
|
|
ignore_error: true
|