mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
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>