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

fix #738 panic in demo #739

Merged
merged 1 commit into from
Aug 2, 2022
Merged

fix #738 panic in demo #739

merged 1 commit into from
Aug 2, 2022

Conversation

killua525
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Aug 2, 2022

Codecov Report

Merging #739 (0822c15) into main (7d9f590) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #739      +/-   ##
==========================================
+ Coverage   80.38%   80.40%   +0.01%     
==========================================
  Files          98       98              
  Lines       10701    10701              
==========================================
+ Hits         8602     8604       +2     
+ Misses       1609     1607       -2     
  Partials      490      490              
Impacted Files Coverage Δ
pkg/filters/headerlookup/headerlookup.go 86.01% <0.00%> (+1.39%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d9f590...0822c15. Read the comment docs.

@localvar localvar requested a review from xxx7xxxx August 2, 2022 03:15
@@ -235,8 +235,7 @@ func (ssc *StatusSyncController) syncStatusToCluster(statusUnits map[string]*sta
if ssc.lastSyncStatusUnits != nil {
kvs := make(map[string]*string)
for k := range ssc.lastSyncStatusUnits {
if su, exists := statusUnits[k]; !exists {
k = su.clusterKey(ssc.superSpec.Super().Cluster().Layout())
if _, exists := statusUnits[k]; !exists {
Copy link
Contributor

Choose a reason for hiding this comment

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

		for k, su := range ssc.lastSyncStatusUnits {
			if _, exists := statusUnits[k]; !exists {
				key := su.clusterKey(ssc.superSpec.Super().Cluster().Layout())
				kvs[key] = nil
			}
		}

It seems this kind of change will fix the problem totally, how about testing and applying it?

@xxx7xxxx xxx7xxxx requested a review from localvar August 2, 2022 06:11
@localvar localvar merged commit 9c721a0 into easegress-io:main Aug 2, 2022
@killua525 killua525 deleted the fix-738 branch October 16, 2022 09:01
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.

None yet

4 participants