-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
MQTT client can't connect leafnode after cluster restart #3027
Comments
LLLLimbo
changed the title
MQTT client can't connect after cluster restart
MQTT client can't connect leafnode after cluster restart
Apr 12, 2022
kozlovic
added a commit
that referenced
this issue
Apr 13, 2022
When using subscriptions through import/exports, the server with a leafnode connection would properly send the interest over, but if the connection is recreated, this would not happen. In case of JetStream where that happens under the cover, message flow would stop after the leafnode restart because the subscriptions would be created on recovery of the JetStream assets but *before* the LeafNode connection could be established. Resolves #3024 Resolves #3027 Resolves #3009 Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
kozlovic
added a commit
that referenced
this issue
Apr 13, 2022
When using subscriptions through import/exports, the server with a leafnode connection would properly send the interest over, but if the connection is recreated, this would not happen. In case of JetStream where that happens under the cover, message flow would stop after the leafnode restart because the subscriptions would be created on recovery of the JetStream assets but *before* the LeafNode connection could be established. Resolves #3024 Resolves #3027 Resolves #3009 Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@LLLLimbo I believe that the issue has to do with a leafnode restarting or recreating a connection and should be addressed in PR that has just been merged. It should be available in the nightly today or in the release v2.8.0 that should be coming out very shortly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The problem is currently found to occur with the problem described in #3009.
Environment
nats-version : 2.7.3
system: centos 7.6
Cluster Information
3 remote nodes, 1 leaf node
Configuration as follows:
https://github.com/LLLLimbo/nats-conf
The full log and Jetstream storage file as follows (After restarting the cluster, trying to connect to the leaf node with the MQTT client) :
https://github.com/LLLLimbo/nats-logs/releases/tag/before-delete
Restarted at around 2022/04/12 09:30.
When I try to connect to the leaf node using the MQTT client, the log for the leaf node shows the following message:
Next, I stopped the leaf node using signal, deleted the jetstream storage, and restarted. I tried to connect to the leaf node using the MQTT client (client_id:
mqttx_8fec4c09
)and found that I was able to connect successfully.The jetstream storage files and logs after these operations (only the most recent parts are intercepted):
https://github.com/LLLLimbo/nats-logs/releases/tag/after-delete
The text was updated successfully, but these errors were encountered: