RabbitMQ 4.4.0
- This version fully supports Erlang 28 and 29 series for new clusters and rolling upgrades
- Quorum queues support delayed messages via the x-opt-delivery-time annotation or header, delivering them only once the given time is reached
- AMQP 1.0 consumers can delay redelivery of a message by setting x-opt-delivery-time in the annotations of a modified outcome
- AMQP 1.0 clients can request sole (exclusive) ownership of a container ID, with conflicts handled per the AMQP 1.0 Connection Uniqueness extension
- A new optional x-name-prefix queue argument sets the prefix for server-named queues, capped at 64 bytes, with the default remaining amq.gen
- The classic queue shared message store has a new v2 on-disk file format (.sqs) that is written automatically for new files, while existing v1 files are left as-is
- Encrypted value support for the definitions.https.url key in rabbitmq.conf
- OpenID Connect discovery responses are now validated more strictly, rejecting non-HTTPS endpoints and issuer claims that do not match the discovery endpoint
- GET /api/auth/hash_password/{password} was replaced by POST /api/auth/hash_password, which takes a JSON body with a password key removed · vendor-flagged, marked in the notes below
- A node with v2 shared message store files present cannot be downgraded to 4.3.x or earlier
- Classic queues perform compaction more efficiently
- x-modulus-hash exchange routing is now stable, routing messages with the same routing key to the same bound destination for an unchanged topology
- The x-modulus-hash exchange type moved from rabbitmq_sharding to the core, so it is available without that plugin enabled
- Changes to the delivery-limit policy key now take effect for existing quorum queues, with removal reverting to the default limit of 20 and a negative value meaning no limit
- Passive declaration of a queue or exchange requires any one of configure, write or read permission on that resource
- Blank (brand new) nodes boot faster
- Password salts for internal users are now generated using a cryptographically secure pseudorandom number generator
- The AMQP 0-9-1 headers x-amqp-1.0-properties, x-amqp-1.0-app-properties, x-amqp-1.0-message-annotations and x-amqp-1.0-footer are no longer parsed vendor-flagged, marked in the notes below
- The x-basic-delivery-mode, x-basic-priority and x-basic-expiration message annotations are no longer parsed vendor-flagged, marked in the notes below
8 changes to check, marked in the notes below
From RabbitMQ
RabbitMQ 4.4.0 is a new feature release.
Breaking Changes and Compatibility Notes
-
The following AMQP 0-9-1 headers are no longer parsed: removed · vendor-flagged
x-amqp-1.0-properties x-amqp-1.0-app-properties x-amqp-1.0-message-annotations x-amqp-1.0-footerRabbitMQ 3.13 and earlier used them to carry the AMQP 1.0 sections of a message received over AMQP 1.0. Nothing has written them since 4.0, so only a message stored by a 3.13 or earlier node and not read since carries them. Such a message is still delivered, with these headers converted like any other
x-header rather than restored as AMQP 1.0 sections. -
Likewise, the
x-basic-delivery-mode,x-basic-priorityandx-basic-expirationmessage annotations are no longer parsed. They were written before 4.0 when an AMQP 0-9-1 message was encoded as AMQP 1.0 for a stream, so only a stream entry written by a 3.13 or earlier node carries them, and reading it no longer restores those three properties. removed · vendor-flagged -
OpenID Connect discovery responses are now validated more strictly. A deployment whose identity provider serves non-HTTPS (
http://) endpoints, or whoseissuerclaim does not match the discovery endpoint used to retrieve it, will fail discovery validation after the upgrade.This is known to affect Cloud Foundry UAA, whose issuer is its token endpoint URL rather than a prefix of its discovery endpoint.
Set
auth_oauth2.discovery.verify_issuerand/orauth_oauth2.discovery.verify_https_endpointstofalsebefore upgrading installations with non-compliant IdPs such as Cloud Foundry UAA. behavior changed · vendor-flaggedSee Discovery Payload Validation for details on validation rules and configuration options.
-
GET /api/auth/hash_password/{password}was replaced with another endpoint,POST /api/auth/hash_password. The new endpoint consumes a POST body with JSON document with one key{"password": "..."}removed · vendor-flagged
Changes Worth Mentioning
Core Server
Enhancements
-
This version fully supports Erlang 28 and 29 series for both new clusters and rolling upgrade scenarios.
-
Quorum queues now support delayed messages.
A message with an
x-opt-delivery-timeannotation or header set to a future time, in milliseconds since the Unix epoch, is routed and enqueued immediately but only delivered to consumers once that time is reached.AMQP 1.0 clients set it as a message annotation, AMQP 0-9-1 clients as a
longheader.An AMQP 1.0 consumer can also delay redelivery of a message by setting
x-opt-delivery-timein the annotations of amodifiedoutcome.GitHub issue: #16583
-
AMQP 1.0 clients can now request sole (exclusive) ownership of a container ID.
In case of a conflict, the server either refuses the new connection or closes the existing one, depending on what the client requested, per the AMQP 1.0 Connection Uniqueness protocol extension.
GitHub issue: #16669
-
A new, optional
x-name-prefixqueue argument sets the prefix used for a server-named queue's generated name, capped at 64 bytes. The default prefix remainsamq.gen.This feature is specific to AMQP 0-9-1.
GitHub issue: #16233
-
The classic queue shared message store gained a new v2 on-disk file format (
.sqs). New files are written in v2 automatically. Existing v1 files (.rdq) are left as-is.Note that a node with v2 files present cannot be downgraded to
4.3.xor earlier.GitHub issue: #17166
-
Classic queues now perform compaction more efficiently.
GitHub issue: #16194
-
x-modulus-hashexchange routing is now stable: assuming a topology that does not change, messages carrying the same routing key are now routed to the same bound destination.Note: the exchange type has been moved from
rabbitmq_shardingto the core, so it is now available even when said plugin is not enabled.GitHub issue: #15849
-
A change to the
delivery-limitpolicy key now takes effect for existing quorum queues.Previously the delivery limit could not be updated from a policy. Now quorum queues reconfigure their
delivery-limitvalue when a policy is added or updated.When the policy is removed the queue goes back to the default limit (
20).A negative policy value means "no limit".
GitHub issue: #16035
-
A passive declaration of a queue or an exchange (a check that it exists) requires any one of the
configure,writeorreadpermissions on that queue or exchange.This applies to
queue.declareandexchange.declarewithpassiveset totruein AMQP 0-9-1, and to queue lookups in AMQP 1.0 management.GitHub issue: #16272
-
Reduce boot time of blank (brand new) nodes.
GitHub issue: #16479
-
Encrypted value support for the
definitions.https.urlkey inrabbitmq.conf.GitHub issue: #16632
-
Password salts for internal users are now generated using a cryptographically secure pseudorandom number generator (CPRNG).
GitHub issue: #16775
-
A topic exchange binding key can now contain at most two multi-segment (
#) wildcards.GitHub issue: #17039
-
Redeclaring a stream with an
x-max-agevalue that is equal to the existing one but written in different units, for example1Das24h, is no longer rejected as having non-equivalent arguments. -
A stream can now start at an offset other than
0, set with the newx-stream-initial-offsetoptional queue argument. While the stream is empty, thefirstandnextoffset specifications resolve to this offset. The stream protocol accepts the same value as thestream-initial-offsetargument of theCreatecommand.The initial offset is fixed when the stream is created, so there is no policy for it, and redeclaring the stream with a different value is rejected.
GitHub issue: #17300
-
Multiple stream coordinator efficiency improvements.
For example, the stream coordinator now retries failed stream member actions sooner, with keeping a related stream partition process blocked for the retry delay.
Failed operations are now retried after a short randomised delay, and actions that failed because a node was down are retried when that node comes back.
GitHub issue: #16515
-
Certain classic queue recovery scenarios now avoid a counterproductive timeout of 60s.
GitHub issue: #17733
-
Reduce CPU use of mostly idle quorum queues that do not have any queue decorators configured (which is the common, baseline case).
-
PBKDF2-HMAC-SHA256 now can be used for password hashing:
password_hashing_module = rabbit_password_hashing_pbkdf2_sha256GitHub issue: #17316
-
AMQP listeners can now bind to a Unix domain socket, using the same
listeners.tcp.*settings as a TCP listener:listeners.tcp.1 = unix:/var/run/rabbitmq/rabbitmq.sock:0GitHub issue: #16963
-
connection_maxandchannel_maxwere renamed tomax_connectionsandmax_channels, respectively, inrabbitmq.conf. The original names are still supported. deprecated · inferredGitHub issue: #16347
-
Messages are now converted from AMQP 0-9-1 to AMQP 1.0 as a single data section, unless its payload consists of valid AMQP 1.0 body sections.
An
expirationvalue that cannot be parsed is now ignored during that conversion.GitHub issue: #17272
-
Client connection listener startup now can be delayed by a configurable number of seconds (default: no additional delay):
listeners.startup_delay = 10 -
Internal peer discovery improvements.
GitHub issue: #17450
Bug Fixes
-
The stream coordinator could leave a stream without a writer and never recover it, keep a stale
startaction after a leader election, or leave a replica disconnected after its node came back.GitHub issue: #16515
-
Multiple bug fixes and optimizations to Single Active Consumers on streams.
-
AMQP 1.0: link handle uniqueness is now enforced per the protocol spec.
GitHub issue: #15780
-
Fix an issue that could trip an upgrade from
3.13to4.2and then immediately to4.3.GitHub issue: #16990
-
Upgrade safety improvements in mixed-version clusters (during rolling upgrades).
GitHub issue: #17128
-
Several bug fixes around binding deletion.
-
Quorum queue Continuous Membership Reconciliation (CMR) could add more members (replicas) than the configured limit.
-
Fixed an off-by-one issue in classic queue shared message store after an unclean shutdown.
GitHub issue: #17351
-
Routing to queues now handles concurrent queue deletion gracefully in more places, avoiding confusing (and also non-actionable) exceptions.
GitHub issue: #17664
-
The
basic.cancelnotification sent on a consumer delivery timeout now properly clears consumer state even if the client does not respond withbasic.cancel-ok.GitHub issue: #17734
CLI Tools
Enhancements
-
Two new commands,
rabbitmqctl sole_connection_statusandrabbitmqctl sole_connection_force_delete, inspect and manage AMQP 1.0 sole connections.GitHub issue: #16669
-
CLI commands that accept sensitive values as interactive input now suppress terminal echoing where possible. This behavior is specific to Erlang 28 and 29.
GitHub issue: #17585
Stream Plugin
Enhancements
-
stream.max_connectionsis a newrabbitmq.confsetting that limits the concurrent number of RabbitMQ Stream Protocol client connections.GitHub issue: #16347
-
stream.max_super_stream_partitionsis a newrabbitmq.confsetting that limits the number of partitions a super stream can have.GitHub issue: #16689
Management Plugin
Enhancements
-
A new endpoint,
GET /api/init, cuts the number of blocking requests the UI has to make with certain authentication and login flows.GitHub issue: #17287
-
The
Referrer-Policyresponse header value of the HTTP API and the UI can now be configured using themanagement.headers.referrer_policykey.GitHub issue: #16893
-
Support for multiple listeners for all HTTP-based protocols and the HTTP API.
Bug Fixes
-
The HTTP API did not return the status of blocked consumers.
GitHub issue: #16532
MQTT Plugin
Enhancements
-
mqtt.max_connectionsis a newrabbitmq.confsetting that limits the concurrent number of MQTT client connections.GitHub issue: #16367
-
MQTT 5.0: a
Receive Maximumvalue of0is now rejected per the protocol spec.GitHub issue: #17057
-
The MQTT retained message store now has per-virtual host limits on the number of retained messages and their total size. A message that would exceed either limit is not retained. behavior changed · inferred
The defaults are 100,000 messages and 1 GiB. Both can be changed, or set to
infinity:mqtt.retained_message_store.max_messages = 100000 mqtt.retained_message_store.max_size_bytes = 1073741824GitHub issue: #17189
STOMP Plugin
Enhancements
-
Following the footsteps of AMQP 1.0 and MQTT in previous years, the STOMP is now a standardlone protocol, that is, it is no longer built on AMQP 0-9-1.
GitHub issue: #9141
-
stomp.max_connectionsis a newrabbitmq.confsetting that limits the concurrent number of STOMP client connections.
GitHub issue: #16368
Web MQTT Plugin
Enhancements
-
The
Strict-Transport-Security(HSTS) header value can now be configured using theweb_mqtt.hsts.policykey:web_mqtt.hsts.policy = max-age=31536000; includeSubDomainsGitHub issue: #16772
-
A new
web_mqtt.strict_origin_validationconfiguration key makes the plugin reject a WebSocket upgrade request without anOriginheader whenweb_mqtt.allow_originsrestricts the allowed origins.web_mqtt.allow_originsalso accepts a new value,same_origin, which only allows requests whoseOriginmatches the origin of the request itself:web_mqtt.allow_origins = same_origin web_mqtt.strict_origin_validation = trueGitHub issue: #16813
Web STOMP Plugin
Enhancements
-
The
Strict-Transport-Security(HSTS) header value can now be configured using theweb_stomp.hsts.policykey:web_stomp.hsts.policy = max-age=31536000; includeSubDomainsGitHub issue: #16772
-
A new
web_stomp.strict_origin_validationconfiguration key makes the plugin reject a WebSocket upgrade request without anOriginheader whenweb_stomp.allow_originsrestricts the allowed origins.web_stomp.allow_originsalso accepts a new value,same_origin, which only allows requests whoseOriginmatches the origin of the request itself:web_stomp.allow_origins = same_origin web_stomp.strict_origin_validation = trueGitHub issue: #16813
Auth Backend OAuth 2 Plugin
Enhancements
-
OpenID Connect discovery responses fetched from identity providers are now validated according to OpenID Connect Discovery 1.0 spec seciton §4.3. See Discovery Payload Validation for details on validation rules and configuration options.
GitHub issue: #17363
-
OAuth 2.0 scopes now ca be extracted using regular expressions.
GitHub issue: #16196
Auth Backend Cache Plugin
Bug Fixes
-
The cache was never hit when the same user reconnected with the same credentials.
On busy deployments this could put significant extra load on the upstream authentication backend and its dependencies, for example, the LDAP backend and the LDAP server(s) it uses.
Consistent Hashing Exchange Plugin
Bug Fixes
-
Routing no longer fails when the header it hashes on holds an empty array.
GitHub issue: #17081
Federation Plugin
Bug Fixes
-
Under certain conditions, deleting a federated queue could modify an exchange with the same name in the same virtual host.
Shovel Plugin
Bug Fixes
-
Deleting a shovel that was still in the
startingstate left its status behind instead of deleting it.GitHub issue: #16767
-
A local shovel with
src-delete-afterset could transfer more messages than the configured number.GitHub issue: #17209
-
When the destination rejects a message, for example because the destination queue has
x-overflowset toreject-publishand has reached its maximum length, the shovel now returns the message to the source queue as a failed delivery. A quorum source queue therefore dead-letters the message once it exceeds the delivery limit, instead of redelivering it to the shovel over and over (a regression in4.3.0).With an AMQP 1.0 source, such a message used to be dead-lettered on the first rejection. Now this happens once it exceeds the delivery limit. A classic source queue has no delivery limit, so the message is returned to it until the destination accepts it.
GitHub issue: #17794
-
A shovel with an AMQP 1.0 destination did not settle a message at the source when the destination rejected or released it, and eventually stopped forwarding messages.
GitHub issue: #17794
-
A shovel with an AMQP 1.0 source could restart and forward some messages twice when the destination confirmed messages out of order.
GitHub issue: #17794
-
A shovel with an AMQP 1.0 source could settle messages incorrectly after more than 4 billion deliveries. With a local destination, it could acknowledge a message at the source before the destination confirmed it.
GitHub issue: #17794
Erlang AMQP 0-9-1 Client
Enhancements
-
The
auth_mechanismquery parameter of an AMQP 0-9-1 URI is now restricted to the mechanisms the client actually supports (plain,amqplain,external,crdemo), and an unsupported value is now rejected when the URI is parsed rather than when the connection is established. This also applies to the Shovel and federation plugins, which parse URIs the same way. behavior changed · inferred -
Likewise, the
verifyquery parameter of an AMQP 0-9-1 URI now only acceptsverify_peerorverify_none, and an unsupported value is rejected when the URI is parsed rather than when the TLS connection is established. behavior changed · inferred
Erlang AMQP 1.0 Client
Enhancements
- Connection configuration now accepts a
connect_timeout, applied to the socket connect and, for TLS, to the handshake as well. Without it, a peer that accepts the TCP connection and then stops responding blocksamqp10_client_supindefinitely, which in turn blocks every other connection attempt in the node. Defaults are unchanged:infinityfor TCP and TLS, 5000 ms for WebSockets.
Dependency Changes
osiriswas upgraded to1.14.1rawas upgraded to3.2.0khepriwas upgraded to0.19.3portunuswas introduced at0.14.0thoaswas dropped: JSON encoding and decoding now uses the Erlang/OTPjsonmodule
Source Code Archives
To obtain source code of the entire distribution, please download the archive named rabbitmq-server-4.4.0.tar.xz
instead of the source tarball produced by GitHub.