Closed Tammyxia closed 2 years ago
CDC process is still there, but [CDC:ErrOwnerNotFound]owner not found"
ps -ef | grep cdc
1 root 3d14 /cdc server --addr=0.0.0.0:8301 --advertise-addr=upstream-ticdc-0.upstream-ticdc-peer.cdc-testbed-tps-662589-1-708.svc:8301 --gc-ttl=86400 --log-file=/var/lib/ticdc/log/ticdc.log --log-level=info --pd=http://upstream-pd:2379 --config=/etc/ticdc/ticdc.toml
Owner can not be re-elected because owner goroutine is blocked by AsyncClose which is blocked by leveldb sorter close.
goroutine 1068 [select, 214 minutes]:
github.com/pingcap/tiflow/pkg/actor.(*mailbox).SendB(0xc384069ec0, {0x381a080, 0xc000058088}, {0x2, 0x0, {0x0, 0x0, 0x0, {0x0, 0x0}, ...}})
github.com/pingcap/tiflow/pkg/actor/actor.go:125 +0xdf
github.com/pingcap/tiflow/pkg/actor.(*Router).Broadcast.func1({0xc8e7fb1ad8?, 0x2d838e0?}, {0x2d91e60?, 0xc3a6d34900})
github.com/pingcap/tiflow/pkg/actor/system.go:292 +0xd9
sync.(*Map).Range(0xc00056cf38?, 0xc8e7fb1b80)
sync/map.go:347 +0x2aa
github.com/pingcap/tiflow/pkg/actor.(*Router).Broadcast(0xc00056cf30, {0x381a080, 0xc000058088}, {0x2, 0x0, {0x0, 0x0, 0x0, {0x0, 0x0}, ...}})
github.com/pingcap/tiflow/pkg/actor/system.go:290 +0x12c
github.com/pingcap/tiflow/pkg/actor.(*System).Stop(0xc0003b6380)
github.com/pingcap/tiflow/pkg/actor/system.go:472 +0x90
github.com/pingcap/tiflow/cdc/sorter/leveldb/system.(*System).Stop(0xc000c3c320)
github.com/pingcap/tiflow/cdc/sorter/leveldb/system/system.go:200 +0xe5
github.com/pingcap/tiflow/cdc/capture.(*Capture).AsyncClose(0xc001fa4460)
github.com/pingcap/tiflow/cdc/capture/capture.go:554 +0x19a
github.com/pingcap/tiflow/cdc/capture.(*Capture).run.func2()
github.com/pingcap/tiflow/cdc/capture/capture.go:300 +0x212
created by github.com/pingcap/tiflow/cdc/capture.(*Capture).run
github.com/pingcap/tiflow/cdc/capture/capture.go:292 +0x410
/found automation
/found automation
/found automation
can not reproduce this issue, reopen it if reproduce again
What did you do?
What did you expect to see?
No any error
What did you see instead?
Versions of the cluster
Upstream TiDB cluster version (execute
SELECT tidb_version();
in a MySQL client):Upstream TiKV version (execute
tikv-server --version
):TiCDC version (execute
cdc version
):