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 forwarder reuse #1232

Merged
merged 69 commits into from
Mar 14, 2022

Conversation

NikitaSkrynnik
Copy link
Contributor

@NikitaSkrynnik NikitaSkrynnik commented Feb 22, 2022

Signed-off-by: Nikita Skrynnik nikita.skrynnik@xored.com

Description

Issue link

#1230

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 functionallity
  • Documentation
  • Refactoring
  • CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
@NikitaSkrynnik NikitaSkrynnik force-pushed the forwarders-fix branch 2 times, most recently from 335f71c to b1a40ef Compare February 22, 2022 12:21
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
.golangci.yml Outdated Show resolved Hide resolved
.golangci.yml Outdated Show resolved Hide resolved
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Comment on lines +96 to +106
segments := request.Connection.GetPath().GetPathSegments()
if pathIndex := int(request.Connection.GetPath().Index); len(segments) > pathIndex+1 {
datapathForwarder := segments[pathIndex+1].Name
for i, candidate := range nses {
if candidate.Name == datapathForwarder {
nses[0], nses[i] = nses[i], nses[0]
break
}
}
}

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
segments := request.Connection.GetPath().GetPathSegments()
if pathIndex := int(request.Connection.GetPath().Index); len(segments) > pathIndex+1 {
datapathForwarder := segments[pathIndex+1].Name
for i, candidate := range nses {
if candidate.Name == datapathForwarder {
nses[0], nses[i] = nses[i], nses[0]
break
}
}
}

Copy link
Member

Choose a reason for hiding this comment

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

I would suggest adding this at line 69

	if forwarderName == "" {
		segments := request.Connection.GetPath().GetPathSegments()
		if pathIndex := int(request.Connection.GetPath().Index); len(segments) > pathIndex+1 {
			forwarderName = segments[pathIndex+1].Name
		}
	}

Comment on lines +540 to +560
_, err = domain.Nodes[nodeNum].NSMgr.NetworkServiceEndpointRegistryServer().Register(ctx, &registry.NetworkServiceEndpoint{
Name: expectedForwarderName,
Url: domain.Nodes[nodeNum].Forwarders[expectedForwarderName].URL.String(),
NetworkServiceNames: []string{"forwarder"},
NetworkServiceLabels: map[string]*registry.NetworkServiceLabels{
"forwarder": {
Labels: map[string]string{
"p2p": "true",
},
},
},
})
require.NoError(t, err)

_, err = domain.Nodes[nodeNum].NSMgr.NetworkServiceEndpointRegistryServer().Register(ctx, &registry.NetworkServiceEndpoint{
Name: nseReg.Name,
Url: nseEntry.URL.String(),
NetworkServiceNames: nseReg.NetworkServiceNames,
})
require.NoError(t, err)
}
Copy link
Member

Choose a reason for hiding this comment

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

I feel this might be fixed by a suggestion from the previous comment.

Suggested change
_, err = domain.Nodes[nodeNum].NSMgr.NetworkServiceEndpointRegistryServer().Register(ctx, &registry.NetworkServiceEndpoint{
Name: expectedForwarderName,
Url: domain.Nodes[nodeNum].Forwarders[expectedForwarderName].URL.String(),
NetworkServiceNames: []string{"forwarder"},
NetworkServiceLabels: map[string]*registry.NetworkServiceLabels{
"forwarder": {
Labels: map[string]string{
"p2p": "true",
},
},
},
})
require.NoError(t, err)
_, err = domain.Nodes[nodeNum].NSMgr.NetworkServiceEndpointRegistryServer().Register(ctx, &registry.NetworkServiceEndpoint{
Name: nseReg.Name,
Url: nseEntry.URL.String(),
NetworkServiceNames: nseReg.NetworkServiceNames,
})
require.NoError(t, err)
}

@NikitaSkrynnik NikitaSkrynnik force-pushed the forwarders-fix branch 2 times, most recently from daf2ed5 to 1613d1a Compare March 3, 2022 08:17
Comment on lines 70 to 76
if forwarderName == "" {
segments := request.Connection.GetPath().GetPathSegments()
if pathIndex := int(request.Connection.GetPath().Index); len(segments) > pathIndex+1 {
forwarderName = segments[pathIndex+1].Name
}
}

Copy link
Member

Choose a reason for hiding this comment

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

@NikitaSkrynnik Please note: in case of death we can down into infinity loop. I.e.

  1. discoverfowarder gets refresh
  2. the previously selected fowrarder dies

actual: discoverforwarder never reselects forwarder.
expected: discoverforwarder reselects forwarder if it is not registered.

So in case if forwarderName is empty we should try to re-use the name, but if it is not possible we should do reselection.

@denis-tingaikin denis-tingaikin merged commit 37b596e into networkservicemesh:main Mar 14, 2022
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request Mar 14, 2022
…k@main

PR link: networkservicemesh/sdk#1232

Commit: 37b596e
Author: Nikita Skrynnik
Date: 2022-03-14 17:51:43 +0700
Message:
  - Add forwarder reuse (#1232)
* add forwarder matching

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use path index instead of magic number

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes for tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make samples

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix heal tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix timeout value

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add debug info

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* forwarder health check after nsmgr restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable traces

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework forwarder health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add simple sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase sleep time

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add healing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable race

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert 'add delete' commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add client conn delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* remove health check + increase sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder registration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run only one test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder register

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with clientconn delete again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert last commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add log

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder register again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase forwarder count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add race flag + disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move test to heal_test.go file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add clientconn.Delete(ctx) again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test only local case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test retry patch

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* wake CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 100 ms

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 1s

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test without retry

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add manual forwarder heal

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add remote test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* reduce tryTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add nse reregistration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

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

PR link: networkservicemesh/sdk#1232

Commit: 37b596e
Author: Nikita Skrynnik
Date: 2022-03-14 17:51:43 +0700
Message:
  - Add forwarder reuse (#1232)
* add forwarder matching

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use path index instead of magic number

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes for tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make samples

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix heal tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix timeout value

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add debug info

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* forwarder health check after nsmgr restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable traces

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework forwarder health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add simple sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase sleep time

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add healing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable race

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert 'add delete' commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add client conn delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* remove health check + increase sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder registration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run only one test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder register

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with clientconn delete again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert last commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add log

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder register again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase forwarder count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add race flag + disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move test to heal_test.go file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add clientconn.Delete(ctx) again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test only local case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test retry patch

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* wake CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 100 ms

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 1s

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test without retry

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add manual forwarder heal

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add remote test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* reduce tryTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add nse reregistration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

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

PR link: networkservicemesh/sdk#1232

Commit: 37b596e
Author: Nikita Skrynnik
Date: 2022-03-14 17:51:43 +0700
Message:
  - Add forwarder reuse (#1232)
* add forwarder matching

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use path index instead of magic number

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes for tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make samples

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix heal tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix timeout value

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add debug info

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* forwarder health check after nsmgr restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable traces

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework forwarder health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add simple sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase sleep time

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add healing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable race

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert 'add delete' commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add client conn delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* remove health check + increase sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder registration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run only one test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder register

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with clientconn delete again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert last commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add log

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder register again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase forwarder count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add race flag + disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move test to heal_test.go file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add clientconn.Delete(ctx) again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test only local case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test retry patch

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* wake CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 100 ms

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 1s

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test without retry

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add manual forwarder heal

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add remote test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* reduce tryTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add nse reregistration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

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

PR link: networkservicemesh/sdk#1232

Commit: 37b596e
Author: Nikita Skrynnik
Date: 2022-03-14 17:51:43 +0700
Message:
  - Add forwarder reuse (#1232)
* add forwarder matching

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use path index instead of magic number

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes for tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make samples

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix heal tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix timeout value

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add debug info

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* forwarder health check after nsmgr restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable traces

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework forwarder health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add simple sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase sleep time

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add healing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable race

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert 'add delete' commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add client conn delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* remove health check + increase sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder registration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run only one test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder register

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with clientconn delete again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert last commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add log

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder register again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase forwarder count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add race flag + disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move test to heal_test.go file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add clientconn.Delete(ctx) again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test only local case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test retry patch

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* wake CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 100 ms

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 1s

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test without retry

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add manual forwarder heal

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add remote test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* reduce tryTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add nse reregistration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

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

PR link: networkservicemesh/sdk#1232

Commit: 37b596e
Author: Nikita Skrynnik
Date: 2022-03-14 17:51:43 +0700
Message:
  - Add forwarder reuse (#1232)
* add forwarder matching

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use path index instead of magic number

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes for tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make samples

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix heal tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix timeout value

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add debug info

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* forwarder health check after nsmgr restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable traces

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework forwarder health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add simple sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase sleep time

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add healing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable race

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert 'add delete' commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add client conn delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* remove health check + increase sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder registration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run only one test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder register

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with clientconn delete again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert last commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add log

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder register again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase forwarder count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add race flag + disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move test to heal_test.go file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add clientconn.Delete(ctx) again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test only local case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test retry patch

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* wake CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 100 ms

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 1s

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test without retry

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add manual forwarder heal

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add remote test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* reduce tryTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add nse reregistration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

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

PR link: networkservicemesh/sdk#1232

Commit: 37b596e
Author: Nikita Skrynnik
Date: 2022-03-14 17:51:43 +0700
Message:
  - Add forwarder reuse (#1232)
* add forwarder matching

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use path index instead of magic number

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes for tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make samples

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix heal tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix timeout value

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add debug info

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* forwarder health check after nsmgr restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable traces

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework forwarder health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add simple sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase sleep time

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add healing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable race

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert 'add delete' commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add client conn delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* remove health check + increase sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder registration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run only one test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder register

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with clientconn delete again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert last commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add log

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder register again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase forwarder count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add race flag + disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move test to heal_test.go file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add clientconn.Delete(ctx) again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test only local case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test retry patch

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* wake CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 100 ms

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 1s

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test without retry

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add manual forwarder heal

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add remote test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* reduce tryTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add nse reregistration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

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

PR link: networkservicemesh/sdk#1232

Commit: 37b596e
Author: Nikita Skrynnik
Date: 2022-03-14 17:51:43 +0700
Message:
  - Add forwarder reuse (#1232)
* add forwarder matching

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use path index instead of magic number

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes for tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make samples

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix heal tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix timeout value

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add debug info

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* forwarder health check after nsmgr restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable traces

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework forwarder health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add simple sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase sleep time

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add healing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable race

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert 'add delete' commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add client conn delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* remove health check + increase sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder registration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run only one test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder register

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with clientconn delete again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert last commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add log

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder register again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase forwarder count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add race flag + disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move test to heal_test.go file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add clientconn.Delete(ctx) again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test only local case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test retry patch

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* wake CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 100 ms

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 1s

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test without retry

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add manual forwarder heal

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add remote test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* reduce tryTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add nse reregistration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

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

PR link: networkservicemesh/sdk#1232

Commit: 37b596e
Author: Nikita Skrynnik
Date: 2022-03-14 17:51:43 +0700
Message:
  - Add forwarder reuse (#1232)
* add forwarder matching

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use path index instead of magic number

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes for tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make samples

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix heal tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix timeout value

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add debug info

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* forwarder health check after nsmgr restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable traces

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework forwarder health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add simple sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase sleep time

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add healing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable race

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert 'add delete' commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add client conn delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* remove health check + increase sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder registration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run only one test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder register

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with clientconn delete again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert last commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add log

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder register again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase forwarder count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add race flag + disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move test to heal_test.go file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add clientconn.Delete(ctx) again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test only local case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test retry patch

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* wake CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 100 ms

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 1s

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test without retry

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add manual forwarder heal

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add remote test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* reduce tryTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add nse reregistration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

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

PR link: networkservicemesh/sdk#1232

Commit: 37b596e
Author: Nikita Skrynnik
Date: 2022-03-14 17:51:43 +0700
Message:
  - Add forwarder reuse (#1232)
* add forwarder matching

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use path index instead of magic number

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes for tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make samples

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix heal tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix timeout value

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add debug info

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* forwarder health check after nsmgr restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable traces

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework forwarder health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add simple sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase sleep time

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add healing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable race

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert 'add delete' commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add client conn delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* remove health check + increase sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder registration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run only one test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder register

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with clientconn delete again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert last commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add log

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder register again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase forwarder count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add race flag + disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move test to heal_test.go file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add clientconn.Delete(ctx) again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test only local case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test retry patch

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* wake CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 100 ms

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 1s

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test without retry

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add manual forwarder heal

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add remote test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* reduce tryTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add nse reregistration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

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

PR link: networkservicemesh/sdk#1232

Commit: 37b596e
Author: Nikita Skrynnik
Date: 2022-03-14 17:51:43 +0700
Message:
  - Add forwarder reuse (#1232)
* add forwarder matching

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use path index instead of magic number

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes for tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make samples

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix heal tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix timeout value

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add debug info

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* forwarder health check after nsmgr restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable traces

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework forwarder health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add simple sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase sleep time

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add healing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable race

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert 'add delete' commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add client conn delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* remove health check + increase sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder registration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run only one test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder register

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with clientconn delete again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert last commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add log

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder register again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase forwarder count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add race flag + disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move test to heal_test.go file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add clientconn.Delete(ctx) again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test only local case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test retry patch

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* wake CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 100 ms

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 1s

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test without retry

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add manual forwarder heal

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add remote test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* reduce tryTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add nse reregistration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
@NikitaSkrynnik NikitaSkrynnik deleted the forwarders-fix branch June 19, 2022 23:39
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