You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dispatching TSO requests and stream reconnection are asynchronized. If we return an error, it also needs to wait until the PD leader is switched and the stream is reconnected. We previously added a backoff to prevent PD from being overwhelmed by GetMember requests.
I think one way to mitigate the issue is to reduce the backoff interval.
Enhancement Task
If the TSO request fails, it will try to update the members to get the new leader.
pd/client/tso_dispatcher.go
Lines 403 to 416 in 41ec8dc
pd/client/tso_dispatcher.go
Line 436 in 41ec8dc
And there is a backoff, which the minimum time is 100ms
pd/client/pd_service_discovery.go
Lines 532 to 556 in 41ec8dc
At the same time, the request can still be put into the channel and wait for handling:
pd/client/tso_client.go
Line 528 in 41ec8dc
And the request might be affected by the backoff because we need to wait for the stream to be re-established.
The text was updated successfully, but these errors were encountered: