Skip to content

rm provider resource wait during init logic#447

Merged
arkodg merged 1 commit intoenvoyproxy:mainfrom
arkodg:rm-init-waits
Sep 28, 2022
Merged

rm provider resource wait during init logic#447
arkodg merged 1 commit intoenvoyproxy:mainfrom
arkodg:rm-init-waits

Conversation

@arkodg
Copy link
Contributor

@arkodg arkodg commented Sep 28, 2022

  • removes all the waitgroup logic associated with the provider resources (gatewayclass, gateway, httproute) that was added to ensure that all resources within the watchable map was comepletely initialized before the gateway api translated the resources

  • this logic is being removed because the individual waitgroups for each resource are causing a sort of deadlock within the gateway-api runner and not allowing it to process new notifications

  • removing this logic does mean that there might some churn in the dataplane during EG reboots. This should get fixed with Consider Merging Controllers #413 which plans on reconciling all resources within a single controller so we cont need to synchonize across multiple controllers using multiple waitgroups

Signed-off-by: Arko Dasgupta arko@tetrate.io

* removes all the waitgroup logic associated with the
provider resources (gatewayclass, gateway, httproute)
that was added to ensure that all resources within the
watchable map was comepletely initialized before the gateway api
translated the resources

* removing this logic does mean that there might some churn in the
dataplane during EG reboots. This should get fixed with envoyproxy#413
which plans on reconciling all resources within a single controller so
we cont need to synchonize across multiple controllers using multiple
waitgroups

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
@arkodg arkodg requested a review from a team as a code owner September 28, 2022 20:18
@codecov-commenter
Copy link

codecov-commenter commented Sep 28, 2022

Codecov Report

Merging #447 (cfb0059) into main (54b26e2) will increase coverage by 0.25%.
The diff coverage is 73.17%.

@@            Coverage Diff             @@
##             main     #447      +/-   ##
==========================================
+ Coverage   60.04%   60.29%   +0.25%     
==========================================
  Files          40       40              
  Lines        4337     4347      +10     
==========================================
+ Hits         2604     2621      +17     
+ Misses       1582     1575       -7     
  Partials      151      151              
Impacted Files Coverage Δ
internal/gatewayapi/runner/runner.go 48.75% <0.00%> (-7.04%) ⬇️
internal/message/types.go 92.45% <ø> (ø)
internal/provider/kubernetes/gateway.go 70.46% <ø> (-0.50%) ⬇️
internal/provider/kubernetes/gatewayclass.go 71.66% <ø> (+6.34%) ⬆️
internal/provider/kubernetes/httproute.go 62.83% <83.33%> (+4.06%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

LukeShu
LukeShu previously approved these changes Sep 28, 2022
Copy link
Contributor

@LukeShu LukeShu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I sorta hate it because now startup is potentially racy, but it's good enough for now.

Copy link
Contributor

@skriss skriss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I'll file an issue to track reimplementing this in some form for 0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants