-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add ability for a user to set mqtt's quiescentTimeout
for forceable shutdowns
#10210
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
Add ability for a user to set mqtt's quiescentTimeout
for forceable shutdowns
#10210
Conversation
cppwfs
commented
Jul 18, 2025
- Mqttv5 updated to also support this feature
- Fixes: MQTT: Configure quiesceTimeout in disconnectForcibly() #10095
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.
Also apply this feature in the AbstractMqttClientManager
implementations.
Plus mention a new property in the whats-new.adoc
.
Thanks
...va/org/springframework/integration/mqtt/inbound/AbstractMqttMessageDrivenChannelAdapter.java
Outdated
Show resolved
Hide resolved
...va/org/springframework/integration/mqtt/inbound/AbstractMqttMessageDrivenChannelAdapter.java
Outdated
Show resolved
Hide resolved
...va/org/springframework/integration/mqtt/inbound/AbstractMqttMessageDrivenChannelAdapter.java
Outdated
Show resolved
Hide resolved
...egration-mqtt/src/test/java/org/springframework/integration/mqtt/BackToBackAdapterTests.java
Outdated
Show resolved
Hide resolved
...tegration-mqtt/src/test/java/org/springframework/integration/mqtt/Mqttv5BackToBackTests.java
Outdated
Show resolved
Hide resolved
… shutdowns Mqttv5 updated to also support this feature Fixes: spring-projects#10095
Update tests to set setDisconnectCompletionTimeout and setQuiescentTimeout to 1L to reduce test runtime Rebase
4dfbf2a
to
03d3bfd
Compare
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.
See Mqttv3ClientManager
and Mqttv5ClientManager
stop()
.
Such a quiesceTimeout
has to be implemented over there as well.
Plus whats-new.adoc
entry.
...java/org/springframework/integration/mqtt/inbound/Mqttv5PahoMessageDrivenChannelAdapter.java
Outdated
Show resolved
Hide resolved
...egration-mqtt/src/test/java/org/springframework/integration/mqtt/BackToBackAdapterTests.java
Outdated
Show resolved
Hide resolved
… getQuiescentTimeout for quiescent timeout BackToBackAdapterTests initializeInboundAdapter needs to be a static method
Thanks. |
Add the quiescentTimeout in the disconnectForcibly in the Mqttv3ClientManager and Mqttv5ClientManager classes Add documentation to what's new doc describing the addition of quiescence timeout
It should be rewritten to state that this is exposing more of the MQTT Client API.
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.
Looks like PR build is failing in the test related to the change.
> Task :spring-integration-mqtt:test
ClientManagerBackToBackTests > testSameV3ClientIdWorksForPubAndSub() FAILED
java.lang.AssertionError at ClientManagerBackToBackTests.java:132
Any thoughts?
Thanks