-
Notifications
You must be signed in to change notification settings - Fork 1
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
(session handling): No response from SUBSCRIBE when client resets #120
Comments
@rodmaz If you retry the subscribe request, does it succeed? This should not fail consistently, but only when a client disconnects and very quickly reconnects and attempts to subscribe. Do you have retries on your subscribe request? |
Currently we don't have retries in our subscription logic (something we probably have to add). |
I'm not sure at this time. I'm not entirely sure that a retry would fix this problem, but it is something that I'd request you to try. Is your client actually calling subscribe after re-connecting? Because if you have a persistent session, you shouldn't have any need to resubscribe to any topics. Moquette claims to have fixed the problem, but we are already using a version which includes the fix, so I'm not very confident it is actually resolved upstream. |
#121 may address your problem. If you are interested, you could take that pull request and create a private version of the Greengrass Moquette component to see if it solves your problem. You can do this using the Greengrass Development Kit: https://github.com/aws-greengrass/aws-greengrass-gdk-cli using the gdk-config.json file which is in this repository you can edit that file to set the proper AWS region. Running |
@MikeDombo #121 is a rebase from 0.16, right? According to Moquette, this is fixed in 0.17. |
Yes, that is a rebase on 0.16 which had additional changes to session handling done to it. 0.17 has made even more changes to the session handling. PR #122 has moquette 0.17 now. |
@MikeDombo Thanks for the swift action on this matter! |
@rodmaz Is this something that you'd be willing/able to try out the pre-release? I'm not positive when we'd be able to release this change publicly; at least 2 weeks at this point. |
@MikeDombo Not needed at this time. We can wait a couple of weeks. Important that a fix is on its way. Thanks! |
New component version is now released which uses Moquette 0.17. The new version is 2.3.5, please try it out when you're able to see if it addresses this issue for you. |
Closing now, please reopen as needed. |
Describe the bug
Whenever our Greengrass client devices reset, they are able to
SUBSCRIBE
but receive no response as Moquette throws exception.To Reproduce
Use
clean-session=true
and reset Greengrass client device after firstSUBSCRIPTION
s.Expected behavior
Greengrass client can reset at any time and subscriptions should work smoothly.
Actual behavior
Moquette throws Java exception:
Environment
openjdk 11.0.20 2023-07-18
2.11.2
2.3.4
FreeRTOS (CoreMQTT)
Additional context
This seems related to the issue reported in 2022 in Moquette.
Workaround
Using
clean-session=false
seems to be a valid workaround.The text was updated successfully, but these errors were encountered: