-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add cleanup when connection state is RESELECT_REQUESTED (using begin server) #1471
Conversation
f07537f
to
9b2284c
Compare
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>
9b2284c
to
5405eb5
Compare
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 Report
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. |
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
There was a problem hiding this 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()) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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()) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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>
5c69aa7
to
8102231
Compare
…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>
…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>
…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>
…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>
…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>
…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>
…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>
…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>
…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>
…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>
…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>
…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>
…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>
…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>
Description
Modify
begin
to callClose
when reselect is requested for already existing connection.Issue link
How Has This Been Tested?
Types of changes