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
[Bug]: Outgoing QoS upgrades not affecting storage of offline messages #2220
Comments
@micw thanks, something smells wrong here. This is somewhat low-priority for me but feel free to propose a fix, if it's urgent for your use case. 👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq |
The upgrade is done too late (the decision to store on disk or not has already been made). The upgrade should be moved to the earliest possible moment (maybe in vmq_queue, and not in mqtt_fsm) |
@mths1 Thanks for the PR! @micw can you give it a try? #2221 👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq |
Test plan:
Expected result: no messages are received - PASS
Expected result: both messages are received by the connected client. Both have qos 1 - PASS
Expected result: both offline messages are received by the client. Both have qos 1 - PASS Works for me. |
@micw thanks for verifying! cc @mths1 👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq |
Environment
Current Behavior
I run VerneMQ with the following command:
I create a persistent offline session with
Then I terminate the client and send two messages:
Then I start the client again:
Expected behaviour
Since QoS is upgraded from 0 to 1, I expect both messages to be handled as offline messages and sent to the client after it re-connects.
Configuration, logs, error output, etc.
Code of Conduct
The text was updated successfully, but these errors were encountered: