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: handle discover forwarder corner cases #1449

Merged
merged 3 commits into from
Apr 24, 2023
Merged

Conversation

denis-tingaikin
Copy link
Member

Description

Closes #1434
Closes #1440
Closes #1448

Issue link

#1434
#1440

How Has This Been Tested?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionality
  • Documentation
  • Refactoring
  • CI

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
@denis-tingaikin denis-tingaikin changed the title fix discover forwarder corner cases fix: handle discover forwarder corner cases Apr 21, 2023
@codecov
Copy link

codecov bot commented Apr 21, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@777f572). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1449   +/-   ##
=======================================
  Coverage        ?   70.25%           
=======================================
  Files           ?      242           
  Lines           ?    11012           
  Branches        ?        0           
=======================================
  Hits            ?     7736           
  Misses          ?     2778           
  Partials        ?      498           

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

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@denis-tingaikin denis-tingaikin force-pushed the fix-forwarder-selection branch from 2d02291 to 9e7ac0d Compare April 21, 2023 12:21
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
@denis-tingaikin denis-tingaikin force-pushed the fix-forwarder-selection branch from 3efd568 to f2fd6d2 Compare April 21, 2023 13:23
@denis-tingaikin denis-tingaikin self-assigned this Apr 24, 2023
@glazychev-art
Copy link
Contributor

I think that with this PR we will see this problem again:
#1204

@denis-tingaikin
Copy link
Member Author

denis-tingaikin commented Apr 24, 2023

@glazychev-art , @edwarnicke I think we might need to allow select a new forwarder if client wants re-select endpoint, because re-select criteria means Close (i.e. close datapath) See at . Thoughts?

@denis-tingaikin denis-tingaikin force-pushed the fix-forwarder-selection branch from 3ec46db to 7023cbb Compare April 24, 2023 14:55
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
@edwarnicke edwarnicke merged commit d93d939 into main Apr 24, 2023
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-cluster-info-k8s that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request Apr 24, 2023
…k@main

PR link: networkservicemesh/sdk#1449

Commit: d93d939
Author: Denis Tingaikin
Date: 2023-04-24 18:16:54 +0300
Message:
  - fix: handle discover forwarder corner cases (#1449)
* fix discover forwarder corner cases

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* self code review

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* allow choose a new forwarder if client wants reselect

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

NSC to close a connection with no longer existing NSE
3 participants