Commit Graph

49431 Commits

Author SHA1 Message Date
Philip Kuryloski 7d5591f5bc Add the build system as a category in the PR template 2021-09-17 09:26:38 +02:00
Philip Kuryloski 6a161475fc Use the deterministic compiler flag for elixir/rabbitmq_cli 2021-09-16 16:45:11 +02:00
Philip Kuryloski 3c3450b49d Update release notes for #3422
https://github.com/rabbitmq/rabbitmq-server/pull/3422
2021-09-16 16:15:11 +02:00
Philip Kuryloski 2da7c8d8c4
Merge pull request #3422 from rabbitmq/management_ui-add-counters_3416
Add counters on detail pages
2021-09-16 14:52:52 +02:00
Michael Klishin fee7bb1287
Update 3.9.6 release notes
(cherry picked from commit d3bae3dc49)
2021-09-16 14:29:59 +03:00
Arnaud Cogoluègnes ab2c565b49
Merge pull request #3423 from rabbitmq/streams-sort-partitions
Sort stream partitions using binding parameter
2021-09-15 14:56:17 +02:00
Arnaud Cogoluègnes faee72552a
Polish test 2021-09-15 11:56:53 +02:00
Arnaud Cogoluègnes 4bbed58352
Add Bazel rule for rabbit_stream_utils_SUITE 2021-09-15 11:38:17 +02:00
Arnaud Cogoluègnes 5b83dceb87
Return only streams for partition-related commands
The stream partition metadata is based on bindings,
so we make sure to return only streams from the binding
information.
2021-09-15 11:33:04 +02:00
Arnaud Cogoluègnes b140395864
Fall back to HOSTNAME(1) in stream Java test suite
In case the Java way fails (only on new CI).
2021-09-15 10:36:27 +02:00
Arnaud Cogoluègnes 04a0653571
Sort stream partitions using binding parameter
If present. To make the partition order stable.
2021-09-14 18:02:22 +02:00
Gabriele Santomaggio 23d0e4d458 Add counters on detail pages
closes https://github.com/rabbitmq/rabbitmq-server/issues/3416
2021-09-14 17:26:05 +02:00
Gabriele Santomaggio 756282b056 Add counters on detail pages
closes https://github.com/rabbitmq/rabbitmq-server/issues/3416
2021-09-14 17:25:34 +02:00
Gabriele Santomaggio 346adc86af Add counters on detail pages
closes https://github.com/rabbitmq/rabbitmq-server/issues/3416
2021-09-14 17:18:49 +02:00
Loïc Hoguin dfe0f4b0a6
Clear federation before deleting message_flow queues
Without this change the test could take a very long time to
cleanup the queues and finish because of a race condition
between the queue deletion and the federation link being
restarted and declaring the queue again.

(The test bidirectional was renamed to message_flow to better
 represent what it is doing.)
2021-09-14 14:46:36 +02:00
Michael Klishin 9725595c00
Merge pull request #3419 from rabbitmq/bump-rbe-image
Adopt latest rabbitmq-server-buildenv:linux-erlang-24.0 for RBE
2021-09-14 10:26:37 +03:00
Arnaud Cogoluègnes 3f1b228dcc
Merge pull request #3394 from rabbitmq/rabbitmq-server-3389-stream-publishers-in-queue-page
Display stream publishers in queue management page
2021-09-14 08:11:53 +02:00
pjk25 40a89d74aa [create-pull-request] automated change 2021-09-14 03:06:24 +00:00
Michael Klishin c915d2e19a
Merge pull request #3413 from rabbitmq/stream-reader-close-in-terminate
Stream reader: close osiris logs and sockets in terminate
2021-09-13 20:49:28 +03:00
Michael Klishin c8d483809e
Resolve a missed conflict 2021-09-13 20:33:11 +03:00
Michael Klishin f79bc1c935
Merge branch 'master' into stream-reader-close-in-terminate
Conflicts:
	deps/rabbitmq_stream/src/rabbit_stream_reader.erl
2021-09-13 20:27:58 +03:00
Arnaud Cogoluègnes 8f207e3c5f
Make stream protocol route command return several streams
We expect to have 1 stream for each routing key, but
as binding can return several queues for a given key we
let that possibility open in the stream protocol.
2021-09-13 17:53:25 +02:00
Arnaud Cogoluègnes b0ec9ff64c
Adapt stream publisher list view to connection/queue context
References #3389
2021-09-13 16:31:06 +02:00
Arnaud Cogoluègnes 39a51772c6
Add extension into dispatcher block code
This is necessary to make sure the extension addition is actually
done in case of refresh of the queue page.

References #3389
2021-09-13 15:17:49 +02:00
Philip Kuryloski 3d7afcdc18 Update the Bazel guide, BAZEL.md 2021-09-13 13:14:31 +02:00
Karl Nilsson 9e4506041d fix build warnings 2021-09-13 11:38:41 +01:00
Karl Nilsson 135575b3ff Stream reader: close osiris logs and sockets in terminate
Instead of injecting it into varios places inside the code.

When the osiris log is closed it will decrement the global "readers"
counter which is why it is much safer to do this in terminate.
2021-09-13 11:23:35 +01:00
Loïc Hoguin 180ce5623a
Mention CQ shutdown increase in 3.8.23/3.9.6 notes 2021-09-13 11:32:37 +02:00
Loïc Hoguin 09c8cd4f98
Increase classic queue shutdown timeout
A value that is too low will prevent the index from shutting
down in time when there are many queues. This leads to the
process being killed and on the next RabbitMQ restart a
(potentially very long) dirty recovery is needed.

The value of 10 minutes was chosen to mirror the shutdown
timeout of the message store. Since both queues and message
store need to have shut down gracefully in order to have
a clean restart it makes sense to use the same value.

Related: c40c2628a9
2021-09-13 10:59:30 +02:00
Karl Nilsson 239e136480
Merge pull request #3397 from rabbitmq/handle-connection-closures-in-stream-reader
Handle closed connections in stream reader
2021-09-10 16:03:04 +01:00
Karl Nilsson 3b1714cbe3 formatting 2021-09-10 15:26:26 +01:00
Karl Nilsson f10db03b4d Gracefully terminate stream reaader
when the client forcefully terminates TCP connection

Also improve logging.
2021-09-10 15:24:29 +01:00
Philip Kuryloski 0dafe70005 Attempt to correct Mergify config for cascaded backports 2021-09-10 15:28:36 +02:00
Philip Kuryloski 16a22f0424
Merge pull request #3401 from rabbitmq/ranch-21-bazel
Use Ranch 2.1.0 in bazel build
2021-09-10 15:16:10 +02:00
Arnaud Cogoluègnes b5700751cf
Add HTTP endpoint for stream publishers
References #3389
2021-09-10 15:14:09 +02:00
Michal Kuratczyk 624767281f Enable metrics collection in run_tests
Proposed `min-masters` implementation relies on metrics so they need to
be collected during queue_master_location tests.
2021-09-10 14:51:11 +02:00
Philip Kuryloski 5fd9d1f638 Use Ranch 2.1.0 in bazel build
Matches 063d32626d
2021-09-10 14:46:36 +02:00
Michael Klishin 13ac078746
Merge pull request #3398 from rabbitmq/rabbitmq-server-3390
Revisit two rabbitmq.conf validators
2021-09-10 13:53:37 +03:00
Michael Klishin 063d32626d
Merge pull request #3392 from rabbitmq/lh-ranch-2.1
Update Ranch to 2.1
2021-09-10 13:51:52 +03:00
Michael Klishin 3248895ec9
Revisit two rabbitmq.conf validators
* max_message_size had an off-by-one error and unfortunate naming
 * classic mirrored queue batch size was not validating the size in messages.
   The limit of over 2B messages did not make much sense. 1M is a still very
   high but a more reasonable upper bound

Fixes #3390
2021-09-10 13:16:21 +03:00
Karl Nilsson d6301a3e11 Handle closed connections in stream reader
and throw and stop gracefully.
2021-09-10 10:15:59 +01:00
Arnaud Cogoluègnes 0038573f89
Display stream publishers in queue management page
If the queue is a stream. WIP, currently all the stream publishers
are listed, a new publishers per stream endpoint is required.

References #3389
2021-09-09 17:41:38 +02:00
Philip Kuryloski 8cc9806f07 Synchronize mixed versions approach with v3.8.x 2021-09-09 13:50:22 +02:00
Loïc Hoguin 0a2bde4ab1
Use the new function ranch_proxy_header:to_connection_info/1 2021-09-09 13:15:08 +02:00
Loïc Hoguin d327e8a7cb
Update Ranch to 2.1.0 2021-09-09 12:37:52 +02:00
Michael Klishin d01b01663b
CLI: introduce :tanzu as a new scope 2021-09-09 13:06:57 +03:00
Karl Nilsson 3513fa0ea8 rabbitmq_stream formatting 2021-09-09 09:45:13 +01:00
Philip Kuryloski bed5497143 Promote the --local_test_jobs flag from user.bazelrc to .bazelrc 2021-09-08 17:12:04 +02:00
Philip Kuryloski 2f69eaf7eb Use the correct "home" directory for rabbit in rabbitmq_home.bzl 2021-09-08 16:56:05 +02:00
Philip Kuryloski eec4a04289 Fix a typo in rabbitmq-run.sh 2021-09-08 16:55:35 +02:00