Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "fix: some status updates are discarded by the status updater" #4754

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zhaohuabing
Copy link
Member

@zhaohuabing zhaohuabing commented Nov 21, 2024

Reverts #4337
Fixes: #4685

Release Note: Yes

Copy link

codecov bot commented Nov 21, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 65.63%. Comparing base (71c0b54) to head (d3e3c6b).

Files with missing lines Patch % Lines
internal/provider/kubernetes/status_updater.go 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4754      +/-   ##
==========================================
+ Coverage   65.61%   65.63%   +0.01%     
==========================================
  Files         211      211              
  Lines       31961    31969       +8     
==========================================
+ Hits        20972    20983      +11     
+ Misses       9750     9749       -1     
+ Partials     1239     1237       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

updateChannel chan<- Update
}

// Send sends the given Update off to the update channel for writing by the UpdateHandler.
func (u *UpdateWriter) Send(update Update) {
// Non-blocking receive to see if we should pass along update.
u.updateChannel <- update
select {
Copy link
Member Author

@zhaohuabing zhaohuabing Nov 22, 2024

Choose a reason for hiding this comment

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

This line can block reconciling

u.updateChannel <- update

Copy link
Member Author

@zhaohuabing zhaohuabing Nov 22, 2024

Choose a reason for hiding this comment

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

It seems that we got regression for #4336

https://github.com/envoyproxy/gateway/actions/runs/11965697450/job/33361599433?pr=4754

Messages:     error waiting for Gateway status to have listeners matching expectations

An alternative approach is decouping the reconciler and gateway status updates: #4767

@zhaohuabing zhaohuabing force-pushed the revert-4337-fix-missing-status-update branch from 045b2af to ec74784 Compare November 22, 2024 03:02
@zhaohuabing zhaohuabing marked this pull request as ready for review November 22, 2024 03:07
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.

503s and _No_route_to_host errors due to routing to non-existent Endpoints
1 participant