Commit Graph

59667 Commits

Author SHA1 Message Date
Simon Unge 2a3c2cfd93
hmpf 2025-07-24 16:50:07 +00:00
Simon Unge c5438199e4
Add put method 2025-07-24 16:28:54 +00:00
Simon Unge 16253611ef
Fully remove httpc 2025-07-24 16:28:52 +00:00
Simon Unge 4521569daa
Update testcases 2025-07-24 16:26:43 +00:00
Simon Unge 27c5487dbd
wip 2025-07-24 16:26:42 +00:00
Simon Unge ee87dc8dcf
wip 2025-07-24 16:26:42 +00:00
Simon Unge 4acb0f0dfc
wip 2025-07-24 16:26:42 +00:00
Michael Klishin 84e0478ff7
Merge pull request #14277 from lukebakken/lukebakken/fix-popup-text-formatting
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 27) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 28) (push) Waiting to run Details
Test (make) / Test (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.18, 28) (push) Waiting to run Details
Test Authentication/Authorization backends via mutiple messaging protocols / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
Test Management UI with Selenium / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
Test Authentication/Authorization backends via mutiple messaging protocols / summary-selenium (push) Has been cancelled Details
Fix error popup text display
2025-07-24 09:25:22 -07:00
Michal Kuratczyk a5106c6a61
Expose ra counters (#13895)
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 27) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 28) (push) Waiting to run Details
Test (make) / Test (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.18, 28) (push) Waiting to run Details
Switch from ra_metrics to ra_counters

* Expose many more metrics (they are also up to date)
* Bump Seshat, Ra, Osiris, Prometheus.erl
* switch from proplists to maps
2025-07-24 10:43:20 +02:00
Luke Bakken 5f5bf81e40
Fix error popup text display
When validation fails for a policy parameter, the resulting popup can't
be read due to one extra binary encoding as well as code that escapes
HTML entites. Since the EJS template uses `<%= >` for the popup, it will
display the text as-is, and not render any HTML.
2025-07-23 22:44:17 -07:00
David Ansari d0c3b3a079
Merge pull request #14255 from rabbitmq/stream-filtering-yield
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 27) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 28) (push) Waiting to run Details
Test (make) / Test (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.18, 28) (push) Waiting to run Details
Support concurrent links with stream filtering
2025-07-23 09:14:11 +02:00
Michael Klishin 0183885ee9
Merge pull request #14272 from rabbitmq/rabbitmq-server-14151
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 27) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 28) (push) Waiting to run Details
Test (make) / Test (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.18, 28) (push) Waiting to run Details
#14151 by @tomyouyou
2025-07-22 10:43:38 -07:00
Michael Klishin 8c8a2e92d2
Merge pull request #14270 from Ayanda-D/await-condition-ignoring-exceptions
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 27) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 28) (push) Waiting to run Details
Test (make) / Test (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.18, 28) (push) Waiting to run Details
Introduce rabbit_ct_helpers:await_condition_* helpers which ignore exceptions
2025-07-22 09:23:35 -07:00
Ayanda Dube c35533d675 introduce rabbit_ct_helpers:await_condition_* helpers which ignore exceptions 2025-07-22 16:26:51 +01:00
Michael Klishin 36fd79cd9e
Merge pull request #14268 from rabbitmq/revert-14264-await-condition-for-exceptions
Revert "Handle exceptions in rabbit_ct_helpers:await_condition_with_retries/2 to continue waiting"
2025-07-22 08:03:14 -07:00
Michael Klishin 50f2308446
Revert "Handle exceptions in rabbit_ct_helpers:await_condition_with_retries/2 to continue waiting" 2025-07-22 08:02:53 -07:00
Michael Klishin 36731efbaa
Merge pull request #14264 from Ayanda-D/await-condition-for-exceptions
Handle exceptions in rabbit_ct_helpers:await_condition_with_retries/2 to continue waiting
2025-07-22 07:59:44 -07:00
David Ansari e35909a7b4
Merge pull request #14265 from Ayanda-D/remove-io-inspect
Remove awkward IO.inspect/1 in rabbitmqctl status command
2025-07-22 13:03:28 +02:00
Ayanda Dube e8a3c4db42 remove IO.inspect/1 in ctl status command 2025-07-22 11:33:36 +01:00
Ayanda Dube faca67b5e6 handle exceptions in rabbit_ct_helpers:await_condition_with_retries/2 and continue waiting 2025-07-22 11:19:30 +01:00
David Ansari 04009b8ff2 Add test case amqp_sql_filter
This test case tests that two links filtering from the same stream
are processed concurrently by the session if the stream contains
uncompressed sub batches.
2025-07-22 10:05:47 +00:00
David Ansari 74d34b0de4 Support concurrent links with stream filtering
## What?

If a receiver performs stream filtering with AMQP property filters or AMQP SQL filter
expressions, the following downsides can occur:
1. While the stream is being filtered, other links on the same
   session are blocked
2. RabbitMQ sends messages late to the receiver

As an example, let's assume a receiver attaches to the start of a multi GB
stream providing a link credit of 2. Let's assume only the very first message
matches the filter. In this case, RabbitMQ scans the entire
stream without processing other links on the same session, and sends the matched
message only once the scan completed (after many seconds or even minutes).

Instead, we want other links to be processed concurrently and the
receiver might want to start processing the first matched message while
RabbitMQ continues filtering the stream.

This commit fixes these two downsides.

 ## How?

After a threshold of consecutively unmatched messages, the session
"pauses" filtering on that link temporarily by:
1. sending an Erlang message `resume_filtering` to itself, and
2. sending any matched messages to the receiver

Any other Erlang messages then have a chance to be processed by the
session before the filtering on that link is resumed by the
`resume_filtering` Erlang message.

Once the end of the stream is reached or link credit is exhausted, the
`credit_reply` will be returned from `rabbit_stream_queue` to
`rabbit_amqp_session`.

An alternative solution would be to use separate Erlang processes for
filtering links as they can be CPU bound and also block for disk I/O.
2025-07-22 10:05:47 +00:00
tomyouyou 1afbdca365
CQ: 'handle_cast(init, State) ' may cause exceptions
In the init_it2 function, when returning stop with none 'From'. This will result in the following exceptions:

2025-06-28 16:01:15.636 [error] <0.1306.0>   crasher:, initial call: rabbit_amqqueue_process:init/1, pid: <0.1306.0>, registered_name: [], exception exit: {bad_return_value, {stop,normal, {existing, {amqqueue, {resource,<<"/">>,queue,<<"q13">>}, false,false,none, [{<<"x-queue-type">>,longstr, <<"classic">>}], <14981.1295.0>,[],[],[],undefined, undefined,[],[],live,0,[],<<"/">>, #{user => <<"rabbit_inside_user">>, system_creation => 1751098305370332559, recover_on_declare => true, creator =>, {1751099091,"10.225.80.5",50046, "none"}, last_system_creation =>, 1751096873022515385}, rabbit_classic_queue,#{}}}, {q,{amqqueue, {resource,<<"/">>,queue,<<"q13">>}, false,false,none, [{<<"x-queue-type">>,longstr, <<"classic">>}], <0.1306.0>,[],[],[],undefined,undefined,[], [],crashed,0,[],<<"/">>, #{user => <<"rabbit_inside_user">>, system_creation => 1751096873022515385, recover_on_declare => false, creator =>, {1751097374,"10.225.80.5",56254, "none"}, recover_vsn => 0, zretarts => [-576459962]}, rabbit_classic_queue,#{}}, none,false,undefined,undefined, {state, {queue,[],[],0}, {active,-576459961468389,1.0}, []}, undefined,undefined,undefined,undefined, {state,none,30000,undefined}, #{},undefined,undefined,undefined, {state,#{},delegate}, undefined,undefined,undefined,undefined, 'drop-head',0,0,running,false,0,undefined, <<"/">>,undefined,0,false,0,undefined,0,0,0,[], undefined,0,0,0,0,true}}}, in function  gen_server2:terminate/3 (gen_server2.erl, line 1172), ancestors: [<0.1089.0>,<0.511.0>,<0.471.0>,<0.470.0>, rabbit_vhost_sup_sup,rabbit_sup,<0.250.0>], message_queue_len: 0, messages: [], links: [<0.1089.0>], dictionary: [{virtual_host,<<"/">>}, {rand_seed, {#{max => 288230376151711743,type => exsplus, next => #Fun<rand.5.65977474>, jump => #Fun<rand.3.65977474>}, [134188285183854767|82006587006243019]}}, {debug_openv_dt_cfg,{1751097655,[1]}}, {process_name, {rabbit_amqqueue_process, {resource,<<"/">>,queue,<<"q13">>}}}], trap_exit: true, status: running, heap_size: 28690, stack_size: 28, reductions: 46062, neighbours:,

(cherry picked from commit e6ec4df9bb)
2025-07-21 16:19:23 -07:00
Michael Klishin 2387fdc21d
Merge pull request #14259 from rabbitmq/dependabot/github_actions/main/google-github-actions/auth-2.1.11
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 27) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 28) (push) Waiting to run Details
Test (make) / Test (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.18, 28) (push) Waiting to run Details
Test Authentication/Authorization backends via mutiple messaging protocols / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
Test Management UI with Selenium / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
Test Authentication/Authorization backends via mutiple messaging protocols / summary-selenium (push) Has been cancelled Details
Bump google-github-actions/auth from 2.1.10 to 2.1.11
2025-07-21 15:15:10 -07:00
dependabot[bot] 95746940fb
Bump google-github-actions/auth from 2.1.10 to 2.1.11
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 2.1.10 to 2.1.11.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/auth/compare/v2.1.10...v2.1.11)

---
updated-dependencies:
- dependency-name: google-github-actions/auth
  dependency-version: 2.1.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-21 20:11:29 +00:00
Michael Klishin 6008e032f8
Merge pull request #14190 from cloudamqp/msg_store_comment
Very minor: Remove outdated comment from rabbit_msg_store
2025-07-21 10:08:34 -07:00
Michael Klishin 86c9ad2b0e
Merge pull request #14252 from rabbitmq/ra-2.16.12
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 27) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 28) (push) Waiting to run Details
Test (make) / Test (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.18, 28) (push) Waiting to run Details
Ra v2.16.12
2025-07-21 07:11:39 -07:00
David Ansari 4dbc2758b9
Merge pull request #14253 from rabbitmq/sql-release-notes
Update 4.2 release notes for AMQP SQL
2025-07-21 15:00:11 +02:00
David Ansari 56e76e912f Update 4.2 release notes for AMQP SQL 2025-07-21 14:59:09 +02:00
Karl Nilsson 2d1c63257b Ra v2.16.12
Bug fix release.

Fixes rarely occuring file handle leak in quorum queue followers.
2025-07-21 11:21:34 +01:00
Michal Kuratczyk 3ea83aca18
Merge pull request #14249 from rabbitmq/x509-0.9.2
Test (make) / Build and Xref (1.18, 26) (push) Has been cancelled Details
Test (make) / Build and Xref (1.18, 27) (push) Has been cancelled Details
Test (make) / Build and Xref (1.18, 28) (push) Has been cancelled Details
Test (make) / Test (1.18, 28, khepri) (push) Has been cancelled Details
Test (make) / Test (1.18, 28, mnesia) (push) Has been cancelled Details
Test (make) / Test mixed clusters (1.18, 28, khepri) (push) Has been cancelled Details
Test (make) / Test mixed clusters (1.18, 28, mnesia) (push) Has been cancelled Details
Test (make) / Type check (1.18, 28) (push) Has been cancelled Details
2025-07-18 16:54:41 +02:00
Michal Kuratczyk 9ffcf0123b
Bump x509 to 0.9.2 2025-07-18 15:47:35 +02:00
Michal Kuratczyk febb58003d
Merge pull request #14232 from rabbitmq/consistent-logging
Peer Discovery AWS Integration Test / Integration Test (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 27) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 28) (push) Waiting to run Details
Test (make) / Test (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.18, 28) (push) Waiting to run Details
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Has been cancelled Details
Test Authentication/Authorization backends via mutiple messaging protocols / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
Test Management UI with Selenium / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
Test Authentication/Authorization backends via mutiple messaging protocols / summary-selenium (push) Has been cancelled Details
Consistent logging
2025-07-18 10:58:40 +02:00
Michal Kuratczyk 3ee82dab54
Updates for SQL filter changes 2025-07-18 09:46:00 +02:00
Michal Kuratczyk f6e718c599
Re-introduce rabbit_log for backwards compatibility
Some community plugins use rabbit_log. To simplify
the transition, we can keep this module as a simple
wrapper on logger macros.
2025-07-18 08:43:05 +02:00
Michal Kuratczyk 69b97b8a17
Trigger CI 2025-07-18 08:43:05 +02:00
Michal Kuratczyk 1e17455463
[skip ci] Code formatting 2025-07-18 08:43:05 +02:00
Michal Kuratczyk e459859a40
Remove test for rabbit_log:log/4 2025-07-18 08:43:05 +02:00
Michal Kuratczyk bcc062203d
rabbit_log -> logger in MQTT test 2025-07-18 08:43:05 +02:00
Michal Kuratczyk 9b3f66c2ec
Remove rabbit_log from Makefile 2025-07-18 08:43:04 +02:00
Michal Kuratczyk 9ab45124e6
rabbit_log -> logger in CLI tests 2025-07-18 08:43:04 +02:00
Michal Kuratczyk 4a4b8bea60
Don't meck rabbit_log 2025-07-18 08:43:04 +02:00
Michal Kuratczyk 5cfb39d30b
rabbit_log -> logger in dynamic calls 2025-07-18 08:43:04 +02:00
Michal Kuratczyk 11e51f58ac
Make dialyzer happy 2025-07-18 08:43:04 +02:00
Michal Kuratczyk d9103c9d6e
Add exchange name back to the log 2025-07-18 08:43:04 +02:00
Michal Kuratczyk 8ffc9912cd
Add missing includes 2025-07-18 08:43:04 +02:00
Michal Kuratczyk cc5c3c60df
Add missing include 2025-07-18 08:43:04 +02:00
Michal Kuratczyk 34d20d92ed
Remove incorrect include 2025-07-18 08:43:03 +02:00
Michal Kuratczyk 0cfab72fea
Fix AMQP-0.8 :) 2025-07-18 08:43:03 +02:00
Michal Kuratczyk 24c3677e92
[skip ci] fix AMQP-1.0 DBG macro 2025-07-18 08:43:03 +02:00