Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@skriss
Copy link
Member

@skriss skriss commented Nov 4, 2020

Fixes an issue where services were being added as DAG roots, even
though they're always children of a route, so by definition not
roots. Also fixes a bug in the endpoints translator that did not
properly track already-visited service clusters to avoid processing
them twice.

Signed-off-by: Steve Kriss [email protected]

@skriss skriss requested a review from stevesloka November 4, 2020 16:21
@codecov
Copy link

codecov bot commented Nov 4, 2020

Codecov Report

Merging #3095 into main will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3095      +/-   ##
==========================================
+ Coverage   73.19%   73.25%   +0.06%     
==========================================
  Files         103      103              
  Lines        6421     6421              
==========================================
+ Hits         4700     4704       +4     
+ Misses       1618     1616       -2     
+ Partials      103      101       -2     
Impacted Files Coverage Δ
internal/dag/accessors.go 93.47% <ø> (-0.08%) ⬇️
internal/xdscache/v2/endpointstranslator.go 80.00% <100.00%> (+1.38%) ⬆️
internal/dag/cache.go 96.13% <0.00%> (+0.77%) ⬆️

Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

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

Just a nit about the log level.

Shall we drop the code that adds Services as dag roots in this PR too?

@skriss skriss force-pushed the skip-dupe-clusters branch 2 times, most recently from 8812c63 to bcfcb9b Compare November 4, 2020 21:56
@skriss
Copy link
Member Author

skriss commented Nov 4, 2020

Shall we drop the code that adds Services as dag roots in this PR too?

Made this change as well.

@skriss skriss changed the title internal/xdscache: fix bug in skipping already seen clusters internal: fix issue with duplicate DAG services & clusters Nov 4, 2020
Copy link
Member

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

LGTM

Fixes an issue where services were being added as DAG roots, even
though they're always children of a route, so by definition not
roots. Also fixes a bug in the endpoints translator that did not
properly track already-visited service clusters to avoid processing
them twice.

Signed-off-by: Steve Kriss <[email protected]>
@skriss skriss force-pushed the skip-dupe-clusters branch from bcfcb9b to 4ab5d57 Compare November 5, 2020 15:45
@skriss skriss merged commit d937ac0 into projectcontour:main Nov 5, 2020
@skriss skriss deleted the skip-dupe-clusters branch November 5, 2020 16:05
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.

3 participants