Skip to content

xds: priority reset failover timer when connecting if seen ready or idle since TF (#9093) (1.46.x backport)#9098

Merged
YifeiZhuang merged 1 commit into
grpc:v1.46.xfrom
YifeiZhuang:priority-1.46-backport
Apr 20, 2022
Merged

xds: priority reset failover timer when connecting if seen ready or idle since TF (#9093) (1.46.x backport)#9098
YifeiZhuang merged 1 commit into
grpc:v1.46.xfrom
YifeiZhuang:priority-1.46-backport

Conversation

@YifeiZhuang

Copy link
Copy Markdown
Member

changes in priority:
Keep track of whether a child has seen TRANSIENT_FAILURE more recently than IDLE or READY, and use this to decide whether to restart the failover timer when a child reports CONNECTING. This ensures that we properly start the failover timer when the ring_hash child policy transitions from IDLE to CONNECTING at startup.
Behaviour change also affects address updates the current priority from CONNECTING to CONNECTING, previously it reports one CONNECTING, right now it does not report and wait there due to failover timer in effect. This helps to try the next priority.

backport of #9093

…dle since TF (grpc#9093)

changes in priority:
Keep track of whether a child has seen TRANSIENT_FAILURE more recently than IDLE or READY, and use this to decide whether to restart the failover timer when a child reports CONNECTING. This ensures that we properly start the failover timer when the ring_hash child policy transitions from IDLE to CONNECTING at startup.
Behaviour change also affects address updates the current priority from CONNECTING to CONNECTING, previously it reports one CONNECTING, right now it does not report and wait there due to failover timer in effect. This helps to try the next priority.
@YifeiZhuang YifeiZhuang requested a review from ejona86 April 20, 2022 17:45
@YifeiZhuang YifeiZhuang merged commit 74d831f into grpc:v1.46.x Apr 20, 2022
@YifeiZhuang YifeiZhuang deleted the priority-1.46-backport branch April 20, 2022 18:21
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants