-
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
Fix query cache goleaks #675
Merged
denis-tingaikin
merged 8 commits into
networkservicemesh:master
from
Bolodya1997:fix-find-watch
Feb 1, 2021
Merged
Fix query cache goleaks #675
denis-tingaikin
merged 8 commits into
networkservicemesh:master
from
Bolodya1997:fix-find-watch
Feb 1, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
denis-tingaikin
requested changes
Jan 27, 2021
Bolodya1997
force-pushed
the
fix-find-watch
branch
from
January 27, 2021 07:43
88a36c5
to
ef13c32
Compare
Bolodya1997
force-pushed
the
fix-find-watch
branch
from
January 27, 2021 10:01
9add411
to
dd77036
Compare
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
…nit() goroutines Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
Bolodya1997
force-pushed
the
fix-find-watch
branch
from
January 29, 2021 08:29
5b27532
to
f4fc65b
Compare
Closed
Bolodya1997
force-pushed
the
fix-find-watch
branch
from
January 29, 2021 11:39
f4fc65b
to
d281ae2
Compare
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
Bolodya1997
force-pushed
the
fix-find-watch
branch
from
January 29, 2021 11:44
d281ae2
to
fc55c72
Compare
pkg/tools/sandbox/utils.go
Outdated
return &EndpointEntry{Endpoint: ep, URL: u}, nil | ||
} | ||
|
||
// UnregisterEndpoint unregisters endpoint from NSMgr | ||
func UnregisterEndpoint(ctx context.Context, nse *registry.NetworkServiceEndpoint, mgr nsmgr.Nsmgr) (err error) { |
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.
As I can see this func is using by one test. Can we make this inline?
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.
Yep, inlined.
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
denis-tingaikin
approved these changes
Feb 1, 2021
nsmbot
pushed a commit
to networkservicemesh/cmd-registry-memory
that referenced
this pull request
Feb 1, 2021
…k@master networkservicemesh/sdk#675 networkservicemesh/sdk PR link: networkservicemesh/sdk#675 networkservicemesh/sdk commit message: commit 20d510498cab80f1edfc44462da56403cd700f6b Author: Vladimir Popov <vladimir.popov@xored.com> Date: Mon Feb 1 12:30:32 2021 +0700 Fix query cache goleaks (#675) * Fix query cache Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox test for Request/Close goleaks Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Remove queryCache.checkQuery() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Fix tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Rework TestNSMGR_ShouldCleanAllClientAndEndpointGoroutines to allow init() goroutines Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Refactor tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox.Unregister() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Inline sandbox.UnregisterEndpoint() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/cmd-nse-vfio
that referenced
this pull request
Feb 1, 2021
…k@master networkservicemesh/sdk#675 networkservicemesh/sdk PR link: networkservicemesh/sdk#675 networkservicemesh/sdk commit message: commit 20d510498cab80f1edfc44462da56403cd700f6b Author: Vladimir Popov <vladimir.popov@xored.com> Date: Mon Feb 1 12:30:32 2021 +0700 Fix query cache goleaks (#675) * Fix query cache Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox test for Request/Close goleaks Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Remove queryCache.checkQuery() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Fix tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Rework TestNSMGR_ShouldCleanAllClientAndEndpointGoroutines to allow init() goroutines Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Refactor tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox.Unregister() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Inline sandbox.UnregisterEndpoint() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/cmd-registry-proxy-dns
that referenced
this pull request
Feb 1, 2021
…k@master networkservicemesh/sdk#675 networkservicemesh/sdk PR link: networkservicemesh/sdk#675 networkservicemesh/sdk commit message: commit 20d510498cab80f1edfc44462da56403cd700f6b Author: Vladimir Popov <vladimir.popov@xored.com> Date: Mon Feb 1 12:30:32 2021 +0700 Fix query cache goleaks (#675) * Fix query cache Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox test for Request/Close goleaks Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Remove queryCache.checkQuery() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Fix tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Rework TestNSMGR_ShouldCleanAllClientAndEndpointGoroutines to allow init() goroutines Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Refactor tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox.Unregister() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Inline sandbox.UnregisterEndpoint() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/sdk-kernel
that referenced
this pull request
Feb 1, 2021
…k@master networkservicemesh/sdk#675 networkservicemesh/sdk PR link: networkservicemesh/sdk#675 networkservicemesh/sdk commit message: commit 20d510498cab80f1edfc44462da56403cd700f6b Author: Vladimir Popov <vladimir.popov@xored.com> Date: Mon Feb 1 12:30:32 2021 +0700 Fix query cache goleaks (#675) * Fix query cache Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox test for Request/Close goleaks Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Remove queryCache.checkQuery() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Fix tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Rework TestNSMGR_ShouldCleanAllClientAndEndpointGoroutines to allow init() goroutines Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Refactor tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox.Unregister() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Inline sandbox.UnregisterEndpoint() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/sdk-vpp
that referenced
this pull request
Feb 1, 2021
…k@master networkservicemesh/sdk#675 networkservicemesh/sdk PR link: networkservicemesh/sdk#675 networkservicemesh/sdk commit message: commit 20d510498cab80f1edfc44462da56403cd700f6b Author: Vladimir Popov <vladimir.popov@xored.com> Date: Mon Feb 1 12:30:32 2021 +0700 Fix query cache goleaks (#675) * Fix query cache Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox test for Request/Close goleaks Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Remove queryCache.checkQuery() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Fix tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Rework TestNSMGR_ShouldCleanAllClientAndEndpointGoroutines to allow init() goroutines Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Refactor tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox.Unregister() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Inline sandbox.UnregisterEndpoint() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/cmd-nsmgr
that referenced
this pull request
Feb 1, 2021
…k@master networkservicemesh/sdk#675 networkservicemesh/sdk PR link: networkservicemesh/sdk#675 networkservicemesh/sdk commit message: commit 20d510498cab80f1edfc44462da56403cd700f6b Author: Vladimir Popov <vladimir.popov@xored.com> Date: Mon Feb 1 12:30:32 2021 +0700 Fix query cache goleaks (#675) * Fix query cache Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox test for Request/Close goleaks Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Remove queryCache.checkQuery() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Fix tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Rework TestNSMGR_ShouldCleanAllClientAndEndpointGoroutines to allow init() goroutines Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Refactor tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox.Unregister() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Inline sandbox.UnregisterEndpoint() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/cmd-nse-icmp-responder
that referenced
this pull request
Feb 1, 2021
…k@master networkservicemesh/sdk#675 networkservicemesh/sdk PR link: networkservicemesh/sdk#675 networkservicemesh/sdk commit message: commit 20d510498cab80f1edfc44462da56403cd700f6b Author: Vladimir Popov <vladimir.popov@xored.com> Date: Mon Feb 1 12:30:32 2021 +0700 Fix query cache goleaks (#675) * Fix query cache Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox test for Request/Close goleaks Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Remove queryCache.checkQuery() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Fix tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Rework TestNSMGR_ShouldCleanAllClientAndEndpointGoroutines to allow init() goroutines Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Refactor tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox.Unregister() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Inline sandbox.UnregisterEndpoint() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/cmd-nsmgr-proxy
that referenced
this pull request
Feb 1, 2021
…k@master networkservicemesh/sdk#675 networkservicemesh/sdk PR link: networkservicemesh/sdk#675 networkservicemesh/sdk commit message: commit 20d510498cab80f1edfc44462da56403cd700f6b Author: Vladimir Popov <vladimir.popov@xored.com> Date: Mon Feb 1 12:30:32 2021 +0700 Fix query cache goleaks (#675) * Fix query cache Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox test for Request/Close goleaks Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Remove queryCache.checkQuery() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Fix tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Rework TestNSMGR_ShouldCleanAllClientAndEndpointGoroutines to allow init() goroutines Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Refactor tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox.Unregister() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Inline sandbox.UnregisterEndpoint() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/sdk-k8s
that referenced
this pull request
Feb 1, 2021
…k@master networkservicemesh/sdk#675 networkservicemesh/sdk PR link: networkservicemesh/sdk#675 networkservicemesh/sdk commit message: commit 20d510498cab80f1edfc44462da56403cd700f6b Author: Vladimir Popov <vladimir.popov@xored.com> Date: Mon Feb 1 12:30:32 2021 +0700 Fix query cache goleaks (#675) * Fix query cache Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox test for Request/Close goleaks Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Remove queryCache.checkQuery() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Fix tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Rework TestNSMGR_ShouldCleanAllClientAndEndpointGoroutines to allow init() goroutines Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Refactor tests Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Add sandbox.Unregister() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Inline sandbox.UnregisterEndpoint() Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
This was referenced Feb 1, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues
Solutions