mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
b78a01e23914cd4207f7bbdd153c95eaf7959776
The harness checks each weed port pair free and releases it before weed binds it, reserving it only inside the test process. On a runner host shared with another job, a port can be taken in between; the master then cannot reach the volume server's gRPC port and the cluster never accepts a write, failing the test as an environment flake. A start whose probe never accepts a write is now stopped (each process's log tail logged) and the cluster is started again on fresh ports in a subdirectory of the same root, up to 3 starts. A cluster with a fault-injection front keeps one start. TestWeedStartAgainOnFreshPortsWhenAPortIsTaken holds the first start's volume gRPC port with a plain HTTP server (as another job's listener): the first start fails as the CI runs did, and the second accepts a write. With one start only, the test fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%