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

Add cleanup when connection state is RESELECT_REQUESTED (using begin server) #1471

Merged
merged 17 commits into from
Jul 3, 2023

Conversation

d-uzlov
Copy link
Contributor

@d-uzlov d-uzlov commented Jun 19, 2023

Description

Modify begin to call Close when reselect is requested for already existing connection.

Issue link

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

@d-uzlov d-uzlov force-pushed the 1454-begin-cleanup branch 2 times, most recently from f07537f to 9b2284c Compare June 20, 2023 12:05
d-uzlov added 8 commits June 21, 2023 13:42
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
@d-uzlov d-uzlov force-pushed the 1454-begin-cleanup branch from 9b2284c to 5405eb5 Compare June 21, 2023 07:25
d-uzlov added 3 commits June 21, 2023 14:31
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
@codecov
Copy link

codecov bot commented Jun 21, 2023

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1471   +/-   ##
=======================================
  Coverage        ?   70.31%           
=======================================
  Files           ?      248           
  Lines           ?    11196           
  Branches        ?        0           
=======================================
  Hits            ?     7873           
  Misses          ?     2821           
  Partials        ?      502           

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

d-uzlov added 3 commits June 22, 2023 15:53
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
d-uzlov added 2 commits June 28, 2023 13:47
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Copy link
Member

@denis-tingaikin denis-tingaikin left a comment

Choose a reason for hiding this comment

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

Changes looks fine.
Added questions related to change for existing tests.

@@ -459,7 +459,7 @@ func testNSMGRHealNSMgr(t *testing.T, nodeNum int, restored bool) {

if restored {
require.Equal(t, 3, counter.Requests())
require.Equal(t, 1, counter.Closes())
require.Equal(t, 2, counter.Closes())
Copy link
Member

Choose a reason for hiding this comment

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

Why do we change this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previously Close never reached NSE because nsmgr restarted, but now Close call is automatically re-issued when reselect request reaches forwarder.

@@ -217,15 +217,15 @@ func Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal(t *testing.T) {
require.Eventually(t, checkSecondRequestsReceived(counter.Requests), timeout, tick)
require.Equal(t, 1, counter.UniqueRequests())
require.Equal(t, 2, counter.Requests())
require.Equal(t, 0, counter.Closes())
require.Equal(t, 1, counter.Closes())
Copy link
Member

Choose a reason for hiding this comment

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

Why do we change existing tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test is designed to test what happens if there were network issues during Close.
Network issues don't matter for Close anymore, as long as we go through the same apps.
Maybe we should just delete this test.

@@ -249,6 +249,7 @@ func (m *MonitorPassThroughSuite) TestServerUpdate() {
expectedConn := endpointConn.Clone()
expectedConn.GetPath().Index = m.conn.GetPath().GetIndex()
expectedConn.Id = expectedConn.GetCurrentPathSegment().GetId()
expectedConn.State = networkservice.State_DOWN
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need to change this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We modified begin to change the connection state to UP.
In this test we didn't do connection.Clone() when calling Request, so we ended up with a modified Connection object, which I tried to fix by manually reverting the connection to expected state.

I have now changed it to use Clone instead of manually modifying the object.

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
@denis-tingaikin denis-tingaikin merged commit 0ba94ea into networkservicemesh:main Jul 3, 2023
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Jul 3, 2023
…k@main

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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

PR link: networkservicemesh/sdk#1471

Commit: 0ba94ea
Author: Danil Uzlov
Date: 2023-07-03 16:26:23 +0700
Message:
  - Add cleanup when connection state is RESELECT_REQUESTED (using begin server) (#1471)
* use modified api dependency

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix dialClient.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverCandidatesServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix discoverForwarderServer.Close

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselect test, fix old tests for reselect

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* use reselect flag on requests in event factory

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add reselectcleanup logic into begin

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix repeated closes

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix line endings

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeForwarderOnDeath_LostHeal

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix Test_DiscoverForwarder_ChangeRemoteForwarderOnDeath

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* adjust checks in the begin element

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* add more tests for nsmgr restart

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* bump ci

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* revert api replacement

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

* fix MonitorPassThroughSuite.TestServerUpdate

Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>

---------

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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants