aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_sync.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2025-12-11 00:22:32 -0800
committerGitHub <noreply@github.com>2025-12-11 00:22:32 -0800
commitc6d6ee8297b7bb569d52b22fa677613514475ce2 (patch)
tree85bf1604ff1cabff6f0522a32b0f43acade75ba5 /weed/command/filer_sync.go
parentde3ecaf0de03a7d2ee1f8cf7516291b3b3b56122 (diff)
downloadseaweedfs-c6d6ee8297b7bb569d52b22fa677613514475ce2.tar.xz
seaweedfs-c6d6ee8297b7bb569d52b22fa677613514475ce2.zip
test: fix master client timeout causing test hangs (#7715)
* test: fix master client timeout causing test hangs Use the main test context for KeepConnectedToMaster instead of creating a separate 60s context. The tests have 180s outer timeouts but the master client was disconnecting after 60s, causing subsequent commands to hang waiting for reconnection. * test: add -peers=none to all test masters and timeout for lock - Add -peers=none flag to all master servers for faster startup - Add tryLockWithTimeout helper to avoid tests hanging on lock acquisition - Skip tests if lock cannot be acquired within 30 seconds * test: extract connectToMasterAndSync helper to reduce duplication * test: fix captureCommandOutput pipe deadlock Close write end of pipe before calling io.ReadAll to signal EOF, otherwise ReadAll blocks forever waiting for more data. * test: fix tryLockWithTimeout to check lock command errors Propagate lock command error through channel and only treat as locked if command succeeded. Previously any completion (including errors) was treated as successful lock acquisition.
Diffstat (limited to 'weed/command/filer_sync.go')
0 files changed, 0 insertions, 0 deletions