Change EnableTSOFollowerProxy
may not take effect
#8947
Labels
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.5
This bug affects the 8.5.x(LTS) versions.
severity/moderate
type/bug
The issue is confirmed as a bug.
Bug Report
pd/client/tso_dispatcher.go
Lines 333 to 402 in c1ee9cf
If the option is true at line 359, it might connect to the follower. After that, the option is changed to false at line 380. This change may not take effect since the
enableTSOFollowerProxy
is false andupdateTicker.C
is nil.It's better to initialize the ticker before stepping into the loop.
The text was updated successfully, but these errors were encountered: