Commit Graph

57092 Commits

Author SHA1 Message Date
Karl Nilsson 25d79fa448 speed up rabbit_fifo_prop_SUITE
mostly by reducing the sizes of some properties as they can run
quite slowly in ci
2024-06-26 07:38:29 +01:00
Karl Nilsson f919fee7f1 speed up quorum_queues_SUITE
AFTER: gmake -C deps/rabbit ct-quorum_queue  6.15s user 4.25s system 2% cpu 6:25.29 total
2024-06-26 07:38:29 +01:00
Karl Nilsson 3551309baf speed up dynamic_qq_SUITE
BEFORE: time gmake -C deps/rabbit ct-dynamic_qq  1.92s user 1.44s system 2% cpu 2:23.56 total

AFTER: time gmake -C deps/rabbit ct-dynamic_qq  1.66s user 1.22s system 2% cpu 1:56.44 total
2024-06-26 07:38:29 +01:00
Karl Nilsson 13a1a7c7fe speed up rabbit_stream_queue_SUITE
Reduce the number of tests that are run for 2 nodes.

BEFORE: time gmake -C deps/rabbit ct-rabbit_stream_queue  7.22s user 5.72s system 2% cpu 8:28.18 total

AFTER time gmake -C deps/rabbit ct-rabbit_stream_queue  27.04s user 8.43s system 10% cpu 5:38.63 total
2024-06-26 07:38:29 +01:00
Michael Klishin 4586236f16
Merge pull request #11562 from rabbitmq/actions-extra-bucket
Actions: use a secondary cache bucket for mixed versions tests.
2024-06-25 18:35:05 -04:00
Karl Nilsson ef7de9cbcc Actions: use a secondary cache bucket for mixed versions tests.
To hopefully reduce the amount of write limiting seen in ci.
2024-06-25 17:01:55 +01:00
Loïc Hoguin 2b03233ac1
make: Remove rabbitmq-macros.mk
It hasn't been used for some time. If compare_version
becomes necessary again in the future, it's in the history.
2024-06-25 13:39:38 +02:00
Loïc Hoguin 9f15e978b1
make: Remove xrefr
It is no longer used by Erlang.mk.
2024-06-25 13:08:08 +02:00
Michael Klishin 34d3f94374 rabbitmq_tracing: test suite cosmetics
(cherry picked from commit de2656c76bec8159dfa1569bc9c387c9e85ab92d)
2024-06-24 16:13:41 -04:00
Michael Klishin cc8720b940
Merge pull request #11555 from rabbitmq/rabbitmq-server-11554
Tracing: expose directory path setting as tracing.dir
2024-06-24 16:12:03 -04:00
Michael Klishin 19f6e672fa Tracing: expose two more settings to rabbitmq.conf 2024-06-24 16:10:47 -04:00
Michael Klishin 118f1a4c86 Tracing: expose directory path setting as tracing.dir
in rabbitmq.conf.

Note that this does not include any tests because
the test would have to use a writeable directory,
and it is not obvious what kind of cross-platform
path that is not computed programmatically they
could use.

It's a trivial schema file that uses an existing
core validator => let's leave it as is.
2024-06-24 15:56:17 -04:00
Michael Klishin 6bc258e9ea
README: remove Erlang 22 and 23 status badges
Actions are visible enough on GitHub to not have to worry
about updating them.
2024-06-24 14:58:24 -04:00
David Ansari b524639e32 Remove dead code 2024-06-24 18:17:40 +02:00
Loïc Hoguin 7e9cac3d00
make: Remove Travis-specific targets/config
This should no longer be used.
2024-06-24 14:12:02 +02:00
Loïc Hoguin 881ebc6138
make: Remove ANT variables
This should no longer be used.
2024-06-24 14:06:48 +02:00
Loïc Hoguin 31310d2315
make: Simplify looking for DEPS_DIR
With the monorepo the dependencies are either correct
or are the parent directory (when we are in a rabbit
application in deps/).
2024-06-24 14:06:46 +02:00
Loïc Hoguin 2a64a0f6c8
Restore FD info in rabbitmqctl status
The FD limits are still valuable.

The FD used will still show some information during CQv1
upgrade to v2 so it is kept for now. But in the future
it will have to be reworked to query the system, or be
removed.
2024-06-24 12:07:51 +02:00
Loïc Hoguin b14bb68bff
Restore a warning about low FD limits
The message has been tweaked; it isn't about FHC
or queues but about system limits only. The
ulimit() function can later be moved out of
FHC when FHC gets fully removed.
2024-06-24 12:07:51 +02:00
Loïc Hoguin d222a36ca2
Additional cleanup following partial FHC removal 2024-06-24 12:07:51 +02:00
Loïc Hoguin 5c8366f753
Remove file_handle_cache_stats module
The stats were not removed from management agent, instead
they are hardcoded to zero in the agent itself.
2024-06-24 12:07:51 +02:00
Loïc Hoguin 6a47eaad22
Zero sockets_used/sockets_limit stats
They are no longer used.

This removes a couple file_handle_cache:info/1 calls.

We are not removing them from the HTTP API to avoid
breaking things unintentionally.
2024-06-24 12:07:51 +02:00
Loïc Hoguin cd35f7e7fa
Remove sockets_used/sockets_total metrics from UIs
Part of the removal of file_handle_cache.

The Prometheus endpoint was updated but the Grafana dashboard
was not.

The FD stats are using the system's state rather than
file_handle_cache so there's no need to remove them.
2024-06-24 12:07:51 +02:00
Loïc Hoguin 49bedfc17e
Remove most of the fd related FHC code
Stats were not removed, including management UI stats
relating to FDs.

Web-MQTT and Web-STOMP configuration relating to FHC
were not removed.

The file_handle_cache itself must be kept until we
remove CQv1.
2024-06-24 12:07:51 +02:00
Michael Klishin 5de87aad3d
Merge pull request #11541 from rabbitmq/mk-rabbit_queue-virtual-host-default-aware
Make 'queue.declare' aware of virtual host DQT at validation time
2024-06-24 06:05:14 -04:00
Michael Klishin 31dc3b848d Definition export: filter out "undefined" DQT fields 2024-06-24 04:39:19 -04:00
Michael Klishin 2e5cb21bce Handle a case where a DQT is 'quorum' but client-provided props are incompatible 2024-06-24 04:11:02 -04:00
Michael Klishin 1a48bb7921 Correctly merge non-empty x-args that do not include queue type
Besides fixing a regression detected by priority_queue_SUITE,
this introduces a drive-by change:

rabbit_priority_queue: avoid an exception when
max priority is a negative value that circumvented validation
2024-06-24 02:09:13 -04:00
Michael Klishin f3b7a346f9 Make 'queue.declare' aware of virtual host DQT
at validation time.

DQT = default queue type.

When a client provides no queue type, validation
should take the defaults (virtual host, global,
and the last resort fallback) into account
instead of considering the type to
be "undefined".

References #11457 ##11528
2024-06-24 01:13:14 -04:00
Michael Klishin f5cb65b5d1 rabbit_queue: edit a comment post-#9815 2024-06-23 23:02:41 -04:00
Michael Klishin 3913fbf791
Merge pull request #11538 from rabbitmq/rabbitmq-server-11454
GET /api/definitions now returns virtual host metadata
2024-06-23 19:50:09 -04:00
Michael Klishin aa466d294f GET /api/definitions now returns virtual host metadata
Closes #10515.
References #11454.
2024-06-23 14:29:57 -04:00
Michael Klishin 86ac886415
Merge pull request #11527 from rabbitmq/gazelle-main
bazel run gazelle
2024-06-22 16:39:14 -04:00
Michael Klishin 70c68392a3
Merge pull request #11533 from wrobell/rabbitmq-streams-doc-protocol-filter-data
Remove Bloom filter data section for message delivery command in RabbitMQ Streams documentation
2024-06-22 13:50:49 -04:00
wrobell 75278ddf21 Remove Bloom filter data section for message delivery command
Also update OsirisChunk entry to reflect current state.
2024-06-22 13:34:37 +01:00
GitHub bab313086a bazel run gazelle 2024-06-22 05:31:18 -04:00
Michael Klishin 7335aaaf1b
Merge pull request #11528 from rabbitmq/mk-fix-virtual-host-creation-post-11457
Follow-up to #11457
2024-06-22 05:15:22 -04:00
Michael Klishin 4b4c0fe74e
Merge pull request #11531 from rabbitmq/revert-11415-amqp_client_schema
Revert "cuttlefish tls schema for amqp_client"
2024-06-22 04:43:21 -04:00
Michael Klishin b9bbf698a0
Merge pull request #11529 from VlkrS/patch-2
Allow elixir 1.17.x
2024-06-22 04:29:13 -04:00
Michael Klishin b822be02af
Revert "cuttlefish tls schema for amqp_client" 2024-06-22 04:16:50 -04:00
Volker Schlecht 732a75d71d
Allow elixir 1.17.x
RabbitMQ builds fine with elixir 1.17.1, tested with Release 3.13.3 on OTP26
2024-06-22 09:40:27 +02:00
Michael Klishin 1e577a82fc Follow-up to #11457
The queue type argument won't always be a binary,
for example, when a virtual host is created.

As such, the validation code should accept at
least atoms in addition to binaries.

While at it, improve logging and error reporting
when DQT validation fails, and while at it,
make the definition import tests focussed on
virtual host a bit more robust.
2024-06-22 02:16:22 -04:00
Michael Klishin 9aa326cac4 Merge branch 'cloudamqp-fix/11315-remove-filter-aggregated-queue-metrics-pattern' 2024-06-21 21:58:50 -04:00
Michael Klishin 9e97c5d8e7 rabbitmq_prometheus.schema: wording 2024-06-21 21:58:43 -04:00
Simon Unge 6853fc972c Add schema duplicate for amqp 1.0 2024-06-21 21:46:34 -04:00
Simon Unge b136da0642 Remove server options and move to rabbit schema 2024-06-21 21:46:34 -04:00
Simon Unge 3195ff8c29 cuttlefish tls schema for amqp_client 2024-06-21 21:46:34 -04:00
Michal Kuratczyk 0cc2eaf012 Handle unknown QQ state
ra_state may contain a QQ state such as {'foo',init,unknown}.
Perfore this fix, all_replica_states doesn't map such states
to a 2-tuple which leads to a crash in maps:from_list because
a 3-tuple can't be handled.

A crash in rabbit_quorum_queue:all_replica_states leads to no
results being returned from a given node when the CLI asks for
QQs with minimum quorum.
2024-06-21 21:46:34 -04:00
Loïc Hoguin 424b59b96b CQ: Remove rabbit_memory_monitor and RAM durations
CQs have not used RAM durations for some time, following
the introduction of v2.
2024-06-21 21:46:34 -04:00
Michael Klishin a656e2e4c6 definition_import_SUITE: fix a subtle timing issue
In case 16, an await_condition/2 condition was
not correctly matching the error. As a result,
the function proceeded to the assertion step
earlier than it should have, failing with
an obscure function_clause.

This was because an {error, Context} clause
was not correct.

In addition to fixing it, this change adds a
catch-all clause and verifies the loaded
tagged virtual host before running any assertions
on it.

If the virtual host was not imported, case 16
will now fail with a specific CT log message.

References #11457 because the changes there
exposed this behavior in CI.
2024-06-21 21:46:34 -04:00