Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #1344 #1345

Merged
merged 2 commits into from Apr 14, 2020
Merged

Fix for #1344 #1345

merged 2 commits into from Apr 14, 2020

Conversation

derekcollison
Copy link
Member

When an account had a pre-existing siReply wildcard and a leafnode restarted this subscription was not being properly sent to the new leafnode connection.

Signed-off-by: Derek Collison derek@nats.io

Resolves #1344

/cc nats-io/core

Signed-off-by: Derek Collison <derek@nats.io>
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

LGTM.

test/leafnode_test.go Show resolved Hide resolved
// This will be a prefix so add on the wildcard.
if siReply != nil {
wcsub := append(siReply, '>')
c.leaf.smap[string(wcsub)]++
Copy link
Member

Choose a reason for hiding this comment

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

What about if any server in the super-cluster is restarted (same issue that when we need to know that any node in the super-cluster starts so that we switch GW to interest-only mode for leafnode accounts)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Could take a closer look. Since the code in question that dealt with the siReply on the fly dealt with routes, GWs and LNs.

Signed-off-by: Derek Collison <derek@nats.io>
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@matthiashanel matthiashanel left a comment

Choose a reason for hiding this comment

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

LGTM.

@derekcollison derekcollison merged commit 9af6dcd into master Apr 14, 2020
@derekcollison derekcollison deleted the ln_restart_bug branch April 14, 2020 18:46
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.

service responses seem to not be delivered after leaf node restart.
3 participants