Repository navigation
TBMQ 2.4.0 Release
Minor release with the following features, infrastructure upgrades, improvements, and bug fixes.
Breaking changes:
Several Prometheus metrics and metric tags were renamed in #342 and #343. Update your queries, recording rules, alerts, and dashboards before upgrading:
sqlQueue_<QueueName>_total{...}becomessqlQueue_total{queueName="<QueueName>", ...}— the queue name moved out of the metric name and into a boundedqueueNametag, so queues can be selected and aggregated together. The queue depth gauge changes the same way, tosqlQueue_queueSize{queueName="<QueueName>", ...}.producer_seconds*{producerId}becomeskafkaProducer_send_seconds*{producerId}— Kafka send latency.consumer_seconds*{consumerId, operation="syncCommit"}becomeskafkaConsumer_commit_seconds*{consumerId}— Kafka commit latency. Theoperationtag was alwayssyncCommitand has been dropped, so remove it from label matchers.clientSubscriptionsConsumerkeeps its name, but itsstatsNametag values change:totalSubscriptionsbecomestotalRecords,acceptedSubscriptionsbecomesacceptedRecords, andignoredSubscriptionsbecomesignoredRecords. These counters advance per Kafka record consumed from the client subscriptions topic, not per subscription.- The
clientSubscriptionsgauge becomessubscriptions, and its meaning changes with it: it now reports the total number of subscriptions across all clients, where it previously reported the number of clients holding at least one subscription. The new value is greater than or equal to the old one whenever a client holds more than one subscription, and it matches thesubscriptionschart in the UI. The value is cluster-wide, so read it from a single node or usemaxrather than summing across nodes.
The msgDownlink counter and the processedBytes historical key were also removed. Neither ever produced data, so neither needs a dashboard change.
Main features:
- #316 Core: Sparkplug 3.0 compliant and aware MQTT server by @dmytro-landiak;
- #323 Core & UI: Deliver client lifecycle events to integrations by @deaflynx and @dmytro-landiak;
- #356 Core: Cluster-wide total throughput quota charged before persistence by @dmytro-landiak;
- #317 Core: Expose dropped messages count as the droppedMsgs Prometheus counter by @dmytro-landiak.
Infrastructure upgrades:
- #315 Migration to Java 25 by @dmytro-landiak;
- #308 Upgrade Angular 19 to Angular 21 by @deaflynx.
Improvements:
- Core:
- #312 Honor X-Forwarded-For and X-Real-IP on WS/WSS listeners by @dmytro-landiak;
- #313 Flow control refactoring: map-based in-flight tracking, event-driven drain, and leak fix by @dmytro-landiak;
- #333 Memoize Redis SSL material and extend TLS/username test coverage for all deployments by @dmytro-landiak;
- #334 Remove obsolete JedisClusterTopologyRefresher by @dmytro-landiak;
- #346 Complete droppedMsgs coverage across the PUBLISH pipeline by @dmytro-landiak;
- #348 Connection outcome metrics: accepted, refused, and error by @dmytro-landiak;
- #344 Add clientDisconnects Prometheus counter by @dmytro-landiak;
- #345 Unify actor processing metrics for client and device actors by @dmytro-landiak;
- #342 Remove dead msgDownlink counter and rename metrics for Prometheus by @dmytro-landiak;
- #347 Enrich MqttSessionHandler exception logs with client id and close origin by @dmytro-landiak.
- UI:
Bug fixes:
- Core:
- #314 Keep client-initiated DISCONNECT in FIFO order with pending PUBLISH by @dmytro-landiak;
- #329 Fix device shared subscription delivery for cross-node subscribers by @dmytro-landiak;
- #328 Enforce APPLICATION QoS 1 retry cap, set DUP on retransmit, reduce ack WARN noise, and add give-up observability by @dmytro-landiak;
- #325 Decrement nonWritableClientsCount on session disconnect by @dmytro-landiak;
- #326 Do not close PROXY protocol LOCAL connections used by health checks by @dmytro-landiak;
- #327 Release HAProxyMessage in ProxyIpAddressHandler by @dmytro-landiak;
- #332 Apply TLS and username to Redis/Valkey Sentinel client configuration by @dmytro-landiak;
- #337 Return per-filter UNSUBACK reason codes by @dmytro-landiak;
- #339 Correct SUBACK reason codes for persist failures and invalid topic filters by @dmytro-landiak;
- #355 Apply a changed rate limit configuration to an existing bucket by @dmytro-landiak;
- #353 Fix lifecycle events topic provisioning and cleanup, and uplink event ordering by @dmytro-landiak;
- #335 Deregister application processor per-client meters on clear to stop a registry leak by @dmytro-landiak;
- #336 Deregister integration processor meters on clear to stop a registry leak by @dmytro-landiak;
- #338 Counter accuracy fixes for subscription, retained, and flow control metrics by @dmytro-landiak;
- #340 NaN guards, SQL queue depth gauge, and removal of the dead queueSize log field by @dmytro-landiak;
- #341 Measure delivery on write completion and actor processing in nanoseconds by @dmytro-landiak;
- #343 Consistent subscriptions gauge, removal of the dead processedBytes key, and rolling upgrade guard by @dmytro-landiak.
- UI:
Security:
- #357 Remediate critical and high CVEs in the TBMQ images by @dmytro-landiak.
Full changelog: v2.3.0...v2.4.0