Commit Graph

57092 Commits

Author SHA1 Message Date
dependabot[bot] 160e016157 build(deps): bump org.apache.maven.plugins:maven-surefire-plugin
Bumps [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) from 3.2.5 to 3.3.0.
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.2.5...surefire-3.3.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 21:46:33 -04:00
dependabot[bot] 90b1271cfe build(deps): bump org.apache.maven.plugins:maven-surefire-plugin
Bumps [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) from 3.2.5 to 3.3.0.
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.2.5...surefire-3.3.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 21:46:33 -04:00
dependabot[bot] 23e9b13f89 build(deps): bump org.apache.maven.plugins:maven-surefire-plugin
Bumps [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) from 3.2.5 to 3.3.0.
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.2.5...surefire-3.3.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 21:46:33 -04:00
Diana Parra Corbacho 44f16e488e Reduce default maximum message size to 16MB 2024-06-21 21:46:33 -04:00
Marcial Rosales 6e023e2007 Remove branch and add paths on PRs 2024-06-21 21:46:33 -04:00
Marcial Rosales c894362f78 Add workflow that builds ibm mq docker image 2024-06-21 21:46:33 -04:00
Diana Parra Corbacho 10944dbb5d rabbit_feature_flags: avoid deadlock on terminating controller
If the global process is itself, it means it just crashed.
It shouldn't wait but terminate
2024-06-21 21:46:33 -04:00
Jean-Sébastien Pédron 1ff8116140 peer_discovery_tmp_hidden_node_SUITE: Use IP address to simulate a long node name
[Why]
The `longnames`-based testcase depends on a copnfigured FQDN. Buildbuddy
hosts were incorrectly configured and were lacking one. As a workaround,
`/etc/hosts` was modified to add an FQDN.

We don't use Buildbuddy anymore, but the problem also appeared on team
members' Broadcom-managed laptops (also having an incomplete network
configuration). More importantly, GitHub workers seem to have the same
problem, but randomly!

At this point, we can't rely on the host's correct network
configuration.

[How]
The testsuite is modified to use a hard-coded IP address, 127.0.0.1, to
simulate a long Erlang node name (i.e. it has dots).
2024-06-21 21:46:33 -04:00
Loïc Hoguin 64e53640b0 make: Don't start all when run-broker a specific plugin
When FAST_RUN_BROKER=1 was introduced it helped reduce the
time to run the broker, but mistakenly was always starting
all plugins even when running run-broker against a specific
plugin, for example `make -C deps/rabbitmq_management run-broker`.

  Starting broker... completed with 36 plugins.

With this commit only the target plugin (and its dependencies)
will be started.

  Starting broker... completed with 3 plugins.

This also has a positive effect on start performance:

  make -C deps/rabbitmq_management run-broker  2,28s user 2,11s system 88% cpu 4,943 total
  make -C deps/rabbitmq_management run-broker  2,00s user 1,61s system 94% cpu 3,807 total
2024-06-21 21:46:33 -04:00
Loïc Hoguin a887c901c5 make: Disable FAST_RUN_BROKER for tests
We want to be strict for tests. Only the code that should
be available when testing a plugin should be made available.
With FAST_RUN_BROKER=1, for the time being, this is not the
case: all plugins' code is available to be loaded.
2024-06-21 21:46:33 -04:00
Michael Klishin 558ab22adb
Merge pull request #11415 from SimonUnge/amqp_client_schema
cuttlefish tls schema for amqp_client
2024-06-21 21:45:32 -04:00
Simon Unge 24fb0334ac Add schema duplicate for amqp 1.0 2024-06-21 21:43:07 -04:00
Simon Unge 145592efe9 Remove server options and move to rabbit schema 2024-06-21 21:43:07 -04:00
Simon Unge 585462d8eb cuttlefish tls schema for amqp_client 2024-06-21 21:43:07 -04:00
Michael Klishin 0b84acd164
Merge pull request #11515 from rabbitmq/issue-11514
Handle unknown QQ state
2024-06-21 21:41:59 -04:00
Michael Klishin 7c2d29d1e4
Merge pull request #11513 from rabbitmq/loic-remove-ram-durations
CQ: Remove rabbit_memory_monitor and RAM durations
2024-06-21 21:40:13 -04:00
Michael Klishin f51528244e 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:32:38 -04:00
Luke Bakken 6ec074874d
Merge pull request #11457 from rabbitmq/lukebakken/vesc-1108-dont-overwrite-default_queue_type
Do not overwrite `default_queue_type` with `undefined`
2024-06-21 10:04:53 -07:00
Luke Bakken 1cf5477d35 Add `vhost:new_metadata` function 2024-06-21 11:25:18 -04:00
Luke Bakken d6fa3b71d3 Remove unused function `rabbit_vhost:put_vhost/5` 2024-06-21 11:25:18 -04:00
Luke Bakken ce16e61d08 Do not overwrite `default_queue_type` with `undefined`
Importing a definitions file with no `default_queue_type` metadata for a vhost will result in that vhosts value being set to `undefined`.

Once set to a non-`undefined` value, this PR prevents `default_queue_type` from being set back to `undefined`
2024-06-21 11:25:18 -04:00
Loïc Hoguin 48f1f40ad0
Merge pull request #11521 from rabbitmq/loic-update-erlang-mk
Update Erlang.mk
2024-06-21 17:09:14 +02:00
Michael Klishin 0f1804e910
Merge pull request #11496 from rabbitmq/speed-up-rabbit-managements-tests
Speed up rabbit managements tests
2024-06-21 11:06:58 -04:00
Loïc Hoguin e316febcd7 Fix regression introduced in 21619bba40
Plugins must depend on 'rabbit' per JSP. But we don't want
to build it. So the better solution is to use LOCAL_DEPS.
2024-06-21 16:29:36 +02:00
Loïc Hoguin 4c17eacf45
Update Erlang.mk 2024-06-21 15:46:13 +02:00
Karl Nilsson db91415fab reliability 2024-06-21 12:38:18 +01:00
Karl Nilsson 738306e778 mixed versions fix 2024-06-21 12:02:29 +01:00
Karl Nilsson 51033093fd speed up more 2024-06-21 10:47:30 +01:00
Karl Nilsson de821c33f8 rabbitmq_management: speed up rabbit_mgmt_test_db_SUITE.erl 2024-06-21 10:47:30 +01:00
Karl Nilsson 39d70b5157 rabbitmq_management: only runs some tests without prefix 2024-06-21 10:47:30 +01:00
Karl Nilsson a9ac9c46cf rabbitmq_management: speed up rabbit_mgmt_http_SUITE.erl 2024-06-21 10:47:30 +01:00
Karl Nilsson eafda7f7ad rabbitmq_management: speed up clustering_SUITE.erl 2024-06-21 10:47:30 +01:00
Karl Nilsson 1625d79f0f rabbitmq_managment: speed up clustering_prop_SUITE 2024-06-21 10:47:30 +01:00
Michael Klishin c67c940bcc
Merge pull request #11448 from rabbitmq/dynamic-load-oauth-deps-ui
Dynamically load oauth-related libraries
2024-06-20 21:37:51 -04:00
Michael Klishin 7ee91ce600
Merge pull request #11517 from rabbitmq/dependabot/maven/deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot_kotlin/main/org.springframework.boot-spring-boot-starter-parent-3.3.1
build(deps): bump org.springframework.boot:spring-boot-starter-parent from 3.3.0 to 3.3.1 in /deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot_kotlin
2024-06-20 20:16:48 -04:00
Michael Klishin 71be018ecb
Merge pull request #11516 from rabbitmq/dependabot/maven/deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot/main/org.springframework.boot-spring-boot-starter-parent-3.3.1
build(deps): bump org.springframework.boot:spring-boot-starter-parent from 3.3.0 to 3.3.1 in /deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot
2024-06-20 19:41:08 -04:00
Michael Klishin a95fcec569 Bazel: depend on Horus 0.2.6 2024-06-20 17:52:27 -04:00
Michael Klishin 59deb56039 Revert "bazel/BUILD.horus: do not include license files"
This reverts commit 5beaa3d912.

Horus 0.2.6 should address the root cause.
2024-06-20 15:37:33 -04:00
dependabot[bot] ac03e9bcb8
build(deps): bump org.springframework.boot:spring-boot-starter-parent
Bumps [org.springframework.boot:spring-boot-starter-parent](https://github.com/spring-projects/spring-boot) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-starter-parent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-20 18:22:05 +00:00
dependabot[bot] 070b605ee7
build(deps): bump org.springframework.boot:spring-boot-starter-parent
Bumps [org.springframework.boot:spring-boot-starter-parent](https://github.com/spring-projects/spring-boot) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-starter-parent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-20 18:10:48 +00:00
Marcial Rosales f0adf3a2e8 Do not expose which backend was used
instead just indicate if the user is internal or not
2024-06-20 12:42:32 -04:00
Marcial Rosales dc7d41042b Refactor 2024-06-20 12:42:32 -04:00
Marcial Rosales b9966295bf Move most javascript logic to helper.js 2024-06-20 12:42:32 -04:00
Marcial Rosales ccb0059cd4 Dynamically load oauth-related libraries 2024-06-20 12:42:32 -04:00
Michal Kuratczyk bfedfdca71
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-20 17:49:43 +02:00
Jean-Sébastien Pédron 8f1219ae55
Merge pull request #11507 from rabbitmq/revert-retry-after-noconnection-in-feature-flags-subsystem
Revert "rabbit_feature_flags: Retry after erpc:call() fails with `noconnection`"
2024-06-20 16:31:04 +02:00
Loïc Hoguin 1ca46f1c63
CQ: Remove rabbit_memory_monitor and RAM durations
CQs have not used RAM durations for some time, following
the introduction of v2.
2024-06-20 15:19:51 +02:00
Rin Kuryloski 71d882e48f
Merge pull request #11506 from rabbitmq/use-rules_elixir-1.1.0
Use the latest rules_erlang & rules_elixir
2024-06-20 14:54:33 +02:00
Jean-Sébastien Pédron d0c13b4a42
Revert "rabbit_feature_flags: Retry after erpc:call() fails with `noconnection`"
This reverts commit 8749c605f5.

[Why]
The patch was supposed to solve an issue that we didn't understand and
that was likely a network/DNS problem outside of RabbitMQ. We know it
didn't solve that issue because it was reported again 6 months after the
initial pull request (#8411).

What we are sure however is that it increased the testing of RabbitMQ
significantly because the code loops for 10+ minutes if the remote node
is not running.

The retry in the Feature flags subsystem was not the right place either.
The `noconnection` error is visible there because it runs earlier during
RabbitMQ startup. But retrying there won't solve a network issue
magically.

There are two ways to create a cluster:
1. peer discovery and this subsystem takes care of retries if necessary
   and appropriate
2. manually using the CLI, in which case the user is responsible for
   starting RabbitMQ nodes and clustering them

Let's revert it until the root cause is really understood.
2024-06-20 14:26:24 +02:00
Loïc Hoguin 7146274f8d
Merge pull request #11509 from rabbitmq/loic-fix-circ-dep
make: Fix circular dependency
2024-06-20 13:34:53 +02:00