Skip to content

Ctrl+C hangs vip-manager forever #282

@pashagolub

Description

@pashagolub

To reproduce:

2024/11/20 07:35:13 No dcs-endpoints specified, trying to use localhost with standard ports!
2024/11/20 07:35:13 This is the config that will be used:
        dcs-endpoints : [http://127.0.0.1:2379]
        dcs-type : etcd
        hostingtype : basic
        interface : Ethernet 5
        interval : 1000
        ip : 127.0.0.100
        manager-type : basic
        netmask : -1
        retry-after : 250
        retry-num : 3
        trigger-key : /patroni/17-test_cluster/leader
        trigger-value : db1.domain.my
        verbose : false
        version : false
2024/11/20 07:35:13 IP address 127.0.0.100/8 state is false, desired false
2024/11/20 07:35:23 IP address 127.0.0.100/8 state is false, desired false
				<----- presss Ctrl+C here after second IP status log line
2024/11/20 07:35:24 Received exit signal
2024/11/20 07:35:24 set WATCH on /patroni/17-test_cluster/leader
{"level":"warn","ts":"2024-11-20T07:35:24.895779+0100","logger":"etcd-client","caller":"v3@v3.5.17/retry_interceptor.go:63","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0002265a0/127.0.0.1:2379","attempt":0,"error":"rpc error: code = Canceled desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing: dial tcp 127.0.0.1:2379: connectex: No connection could be made because the target machine actively refused it.\""}
2024/11/20 07:35:24 etcd error: context canceled
2024/11/20 07:35:24 IP address 127.0.0.100/8 state is false, desired false

Call stack of the waiting routine on the latest stable v2.8:

ipmanager.(*IPManager).applyLoop (vip-manager\ipmanager\ip_manager.go:82)
ipmanager.(*IPManager).SyncStates.func1 (vip-manager\ipmanager\ip_manager.go:97)
runtime.goexit (go\src\runtime\asm_amd64.s:1700)

Blocking call:

m.recheck.Wait()

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions