mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
dccff2f073365e5d28cd5bedd917f9560d46668b
P1: f1WaitAdopted took any log line containing "address already in use" as a taken port. It now passes the attempt's four drawn addresses to bindTakenOn, which accepts only Go's listener error ending a line, "listen tcp <addr>: bind: address already in use", with <addr> one of them; a different port or host, a dial, a quoted copy, text after it, udp or the bare words are not a taken port, so the start fails as before. P2: the retry starts as blockvolume-<key>-attempt2, so the first attempt's log is not truncated, and startWithBindRetry returns the first attempt's error, which the test logs (address and log path) before the retry's answer. Red: TestBindTakenOnOnlyThisAttemptsListener fails with the previous substring rule; TestStartWithBindRetry checks attempt numbers and the kept first error. 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%