summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Test scope prefix within scope alias mappingconfigurable-oauth2-scope-prefixMarcial Rosales2023-04-261-1/+45
|
* Make parameter optionalMarcial Rosales2023-04-261-1/+1
|
* Configure Oauth scope prefixMarcial Rosales2023-04-265-21/+68
| | | | separate from resource_server_id
* Update the sha for otp 26 as used in the dev ociRin Kuryloski2023-04-261-1/+1
| | | | it had been copied from 25.3 without an update
* Merge pull request #7991 from ↵Rin Kuryloski2023-04-262-19/+21
|\ | | | | | | | | rabbitmq/rin/update-elixir-erlang-autobump-workflows Update the automation to bump erlang/elixir patches in CI
| * Update the automation to bump erlang/elixir patches in CIRin Kuryloski2023-04-262-19/+21
| | | | | | | | | | | | | | | | | | so that the workflow fails if the branch already exists, instead of just skipping We had a period of many weeks where the elixir workflow was being skipped because the branch was left around after a PR was closed, so we want to avoid that in the future
* | Merge pull request #7990 from rabbitmq/bump-elixir-1.14Rin Kuryloski2023-04-262-4/+4
|\ \ | | | | | | Adopt elixir 1.14.4
| * | Adopt elixir 1.14.4GitHub2023-04-262-4/+4
| |/
* | Merge pull request #7989 from rabbitmq/rin/simplify-rabbitmq-run-reference-bazelRin Kuryloski2023-04-261-2/+2
|\ \ | |/ |/| Simplify the reference to RABBITMQ_RUN in bazel in integration tests
| * Simplify the reference to RABBITMQ_RUN in bazel in integration testsRin Kuryloski2023-04-251-2/+2
| |
* | Add gazelle workflowsRin Kuryloski2023-04-262-0/+79
| | | | | | | | | | | | Add a nightly and manual workflow that will run gazelle and open a PR if there are any changes. This will ensure that bazel files stay up to date.
* | Fix a compiler warning on OTP 26, references #7845Michael Klishin2023-04-261-1/+1
| |
* | Merge pull request #7980 from rabbitmq/lh-cqv1-ttlMichael Klishin2023-04-261-6/+14
|\ \ | | | | | | CQv1: Don't limit messages in memory based on consume rate
| * | CQv1: Don't limit messages in memory based on consume rateLoïc Hoguin2023-04-251-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The v1 index is not optimised for reading messages except when the entire segment is read. So we always do that. This change was made because when the read is inefficient and TTL is used the queue can get unresponsive while getting the TTL messages dropped. In that case the queue may drop messages slower than they expire and as a result will not process any Erlang messages until it has dropped all messages in the queue.
* | | Merge pull request #7981 from rabbitmq/deliver-ack-timeout-5437Michael Klishin2023-04-264-50/+137
|\ \ \ | |_|/ |/| | Allow setting consumer timeout via queue policy/arg and as consumer argument
| * | Don't use fully-qualified calls in the module itselfMichael Klishin2023-04-261-2/+2
| | |
| * | Code formattingMichael Klishin2023-04-251-7/+7
| | |
| * | Fix a compilation warningMichael Klishin2023-04-251-2/+1
| | |
| * | Allow setting consumer timeout via queue policy/arg and as consumer arg. ↵Iliia Khaprov2023-04-254-49/+137
|/ / | | | | | | Close #5437
* | Merge pull request #7982 from rabbitmq/rin/use-rules_erlang-3.9.14Rin Kuryloski2023-04-2551-636/+2738
|\ \ | | | | | | Use rules erlang 3.9.14
| * | Replace globs in bazel with explicit lists of filesRin Kuryloski2023-04-2549-634/+2736
| | | | | | | | | | | | As this is preferred in rules_erlang 3.9.14
| * | Use rules_erlang 3.9.14Rin Kuryloski2023-04-252-2/+2
|/ /
* | Adjust the platform definition for the erlang git master pipeline (#7964)Rin Kuryloski2023-04-251-1/+1
| | | | | | by using the more selective constraint value
* | Merge pull request #7961 from rabbitmq/rabbitmq-server-7864Michael Klishin2023-04-252-5/+22
|\ \ | | | | | | Special case "unknown" for IP address
| * | Make dialyzer happy by ensuring `rabbit_data_coercion:to_list/1` can handle ↵Luke Bakken2023-04-242-3/+18
| | | | | | | | | | | | `inet:ip_address()`
| * | Tweak type specLuke Bakken2023-04-241-1/+1
| | |
| * | Special case "unknown"Luke Bakken2023-04-241-1/+3
| | | | | | | | | | | | Fixes #7864
* | | auth_backend_http: modernize the READMEMichael Klishin2023-04-251-83/+74
|/ /
* | Merge pull request #7970 from ↵Michael Klishin2023-04-241-11/+25
|\ \ | | | | | | | | | | | | rabbitmq/mk-silence-remote-shell-dialyzer-on-otp-26 CLI: more OTP 26 compatibility for remote_shell
| * | mix formatMichael Klishin2023-04-241-9/+9
| | |
| * | CLI: more OTP 26 compatibility for remote_shellMichael Klishin2023-04-241-11/+25
| |/ | | | | | | | | shell:start_interactive/1 takes a {node(), mfa()}, not {node(), atom(), atom(), non_neg_integer()}
* | Merge pull request #7963 from rabbitmq/mk-cli-table-formatter-otp-26-compatMichael Klishin2023-04-243-26/+17
|\ \ | | | | | | CLI: make input ordering preditable when formatting a table
| * | CLI: drop two table formatter testsMichael Klishin2023-04-241-23/+0
| | | | | | | | | | | | | | | The only way to make them reliable in their current form would be converting to keyword lists, which are covered anyway.
| * | CLI: make input ordering preditable when formatting a tableMichael Klishin2023-04-243-4/+18
| |/ | | | | | | | | | | if the input is given as a map. References #7931, #7921
* | Merge pull request #7966 from rabbitmq/otp26-compatibilityMichael Klishin2023-04-246-8/+18
|\ \ | | | | | | OTP26 compatibility: `{verify_none}`
| * | verify_none in a couple of testsMichal Kuratczyk2023-04-246-8/+18
| |/
* | Bump test cluster creation timeoutsDavid Ansari2023-04-244-6/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in MQTT tests. For example in the ff_SUITE wee see in Buildbuddy sporadic failures that the cluster cannot be created within 2 minutes: ``` *** CT Error Notification 2023-04-24 10:58:55.628 ***🔗 rabbit_ct_helpers:port_receive_loop failed on line 945 Reason: {timetrap_timeout,120000} ... === Ended at 2023-04-24 10:58:55 === Location: [{rabbit_ct_helpers,port_receive_loop,945}, {rabbit_ct_helpers,exec,920}, {rabbit_ct_broker_helpers,cluster_nodes1,858}, {rabbit_ct_broker_helpers,cluster_nodes1,840}, {rabbit_ct_helpers,run_steps,141}, {ff_SUITE,init_per_group,last_expr}, {test_server,ts_tc,1782}, {test_server,run_test_case_eval1,1379}, {test_server,run_test_case_eval,1223}] === Reason: timetrap timeout === *** init_per_group failed. Skipping all cases. ``` The default time limit for a test case is 30 minutes.
* Merge pull request #7927 from rabbitmq/otp-26-tcp-sendMichael Klishin2023-04-241-1/+26
|\ | | | | Make tcp send OTP 26 compatible
| * Make tcp send OTP 26 compatibleDavid Ansari2023-04-181-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Follow up of https://github.com/rabbitmq/rabbitmq-server/pull/7913 and https://github.com/rabbitmq/rabbitmq-server/pull/7921 This commit uses the approach explained in https://github.com/erlang/otp/issues/7130#issuecomment-1512808759 We cannot use the macro `?OTP_RELEASE` since macros are evaluated at compile time. RabbitMQ can be compiled with OTP 25 and executed with OTP 26. Therefore, we use `erlang:system_info(otp_release)` instead. As `erlang:system_info/1` might be costly, we store the send function in persistent_term. For OTP 25, we use the "old tcp send workaround" (i.e. `erlang:port_command/2`) which avoids expensive selective receives. For OTP 26, we use `gen_tcp:send/2` which uses the optimised selective receive. Once the minimum required version becomes OTP 26, we can just switch to `gen_tcp:send/2` and delete the `inet_reply` handling code in the various RabbitMQ reader and writer processes. Note that `rabbit_net:port_command/2` is not only used by RabbitMQ server, but also by the AMQP 0.9.1 client. Therefore, instead of putting the OTP version (or send function) into persistent_term within the rabbit app, we just do it the first time `rabbit_net:port_command/2` is invoked. (`rabbit_common` is just a library without supervision hierarchy.)
* | Merge pull request #7950 from rabbitmq/restore-rabbit_fifo-include_libMichael Klishin2023-04-2047-9/+318
|\ \ | | | | | | Restore the original -include_lib statements from before #6466
| * | Restore the original -include_lib statements from before #6466Rin Kuryloski2023-04-2047-9/+318
|/ / | | | | | | | | | | since this broke erlang_ls requires rules_erlang 3.9.13
* | Merge pull request #7938 from rabbitmq/fixup-make-buildRin Kuryloski2023-04-206-8/+8
|\ \ | | | | | | Adjust `-include(...` in some tests to work with both bazel and make
| * | Adjust -include in some tests to work with both bazel and makeRin Kuryloski2023-04-196-8/+8
| | |
* | | Merge pull request #7943 from rabbitmq/rabbitmq-server-4976Michael Klishin2023-04-201-5/+5
|\ \ \ | | | | | | | | Ensure monitor is started when dequeuing
| * | | Ensure monitor is started when dequeuingLuke Bakken2023-04-191-5/+5
| | | | | | | | | | | | | | | | Fixes #4976
* | | | Fix stream import on startup (#7866)Arnaud Cogoluègnes2023-04-202-3/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use reachable nodes to start stream coordinator Ra cluster rabbit_nodes:list_running/0 was previously used, but it returns only nodes with the rabbit application running. The application may not be running when streams are created, e.g. when importing definitions on startup. The function would then return an empty list, which makes the Ra cluster startup fail. rabbit_nodes:list_reachable/0 returns cluster nodes, regardless of the status of the rabbit application, which is enough in this case. * Return existing queue record on queue creation If any. And do not expect the record to be exactly equal to the passed-in queue parameter: it is not for streams (spotted by trying to import stream definitions on startup several times). * Add an assertion --------- Co-authored-by: Michal Kuratczyk <mkuratczyk@vmware.com>
* | | Merge pull request #7941 from rabbitmq/mk-3.12.0-release-notes-updateMichael Klishin2023-04-191-3/+34
|\ \ \ | | | | | | | | Update 3.12.0 release notes
| * | | 3.12.0 release notesMichael Klishin2023-04-191-3/+34
| |/ /
* | | Merge pull request #7745 from rabbitmq/recovery-terms-ram-file-on-startMichael Klishin2023-04-193-19/+45
|\ \ \ | |/ / |/| | Recovery terms: use ram_file on start, but not on shutdown
| * | Merge branch 'main' into recovery-terms-ram-file-on-startMichael Klishin2023-04-1762-206/+137
| |\ \