This is an automated email from the ASF dual-hosted git repository.

brusdev pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new 37fbbc4c11 ARTEMIS-5441 discrepancy b/w MQTT doc & code for session 
scan interval
37fbbc4c11 is described below

commit 37fbbc4c11aaa1ad30aaa5610aa71b9209e82bf8
Author: Justin Bertram <[email protected]>
AuthorDate: Mon Jun 16 14:18:22 2025 -0500

    ARTEMIS-5441 discrepancy b/w MQTT doc & code for session scan interval
---
 .../artemis/api/config/ActiveMQDefaultConfiguration.java |  2 +-
 docs/user-manual/versions.adoc                           | 16 ++++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git 
a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/config/ActiveMQDefaultConfiguration.java
 
b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/config/ActiveMQDefaultConfiguration.java
index fe5353ff6c..18e3f17b91 100644
--- 
a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/config/ActiveMQDefaultConfiguration.java
+++ 
b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/config/ActiveMQDefaultConfiguration.java
@@ -684,7 +684,7 @@ public final class ActiveMQDefaultConfiguration {
    private static final boolean DEFAULT_SECURITY_CACHE_METRICS = false;
 
    // How often (in ms) to scan for expired MQTT sessions
-   private static long DEFAULT_MQTT_SESSION_SCAN_INTERVAL = 500;
+   private static long DEFAULT_MQTT_SESSION_SCAN_INTERVAL = 5000;
 
    // How long (in ms) to wait to persist MQTT session state
    private static long DEFAULT_MQTT_SESSION_STATE_PERSISTENCE_TIMEOUT = 5000;
diff --git a/docs/user-manual/versions.adoc b/docs/user-manual/versions.adoc
index a30634b369..6f53605fc4 100644
--- a/docs/user-manual/versions.adoc
+++ b/docs/user-manual/versions.adoc
@@ -13,6 +13,22 @@ NOTE: If the upgrade spans multiple versions then the steps 
from *each* version
 
 NOTE: Follow the general upgrade procedure outlined in the 
xref:upgrading.adoc#upgrading-the-broker[Upgrading the Broker]  chapter in 
addition to any version-specific upgrade instructions outlined here.
 
+== 2.42.0
+
+https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12315920&version=12355900[Full
 release notes]
+
+=== Highlights
+
+* Example highlight 1
+* Example highlight 2
+
+=== Upgrading from 2.41.0
+
+* The broker was always meant to scan MQTT sessions every `5000` milliseconds, 
but due to a bug it was doing so every `500` milliseconds instead.
+This has been fixed via 
https://issues.apache.org/jira/browse/ARTEMIS-5202[ARTEMIS-5202].
+Since this is technically changing the default behavior of the broker it is 
being enumerated here for clarity.
+Keep in mind that this is configurable via the 
xref:mqtt.adoc#automatic-subscription-clean-up[`mqtt-session-scan-interval`] 
parameter in `broker.xml`.
+
 == 2.41.0
 
 
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12315920&version=12355793[Full
 release notes]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to