tikv / pd

Placement driver for TiKV
Apache License 2.0
1.06k stars 724 forks source link

[WARN] ["No TiDB is alive now"] repeated appears in pd log #2537

Open zz-jason opened 4 years ago

zz-jason commented 4 years ago

Description

It's a little annoying that this warning message repeated printed to the log every 5 seconds.

[2020/06/15 14:34:57.409 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:35:02.242 +08:00] [WARN] [tidb_requests.go:48] ["failed to get tidb schema version"] []
[2020/06/15 14:35:02.411 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:35:07.416 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:35:12.420 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:35:17.421 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:35:22.427 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:35:27.428 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:35:32.431 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:35:37.433 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:35:42.435 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:35:47.437 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:35:52.442 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:35:57.447 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:36:02.244 +08:00] [WARN] [tidb_requests.go:48] ["failed to get tidb schema version"] []
[2020/06/15 14:36:02.449 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:36:07.452 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:36:12.454 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:36:17.458 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:36:22.462 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:36:27.464 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:36:32.466 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:36:37.467 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:36:42.468 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]
[2020/06/15 14:36:47.470 +08:00] [WARN] [forwarder.go:117] ["No TiDB is alive now"]

Possible Solution

Maybe we only need to print it once. Or maybe we don't need to print this log since there are cases that a cluster only has TiKV and PD.

rleungx commented 4 years ago

related to https://github.com/pingcap-incubator/tidb-dashboard/issues/606.