Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Mar 21, 2023

This is an automatic backport of pull request #7686 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

…ic code

[Why]
The partition detection code defines a partitioned node as an Erlang
node running RabbitMQ but which is not among the Mnesia running nodes.

Since  #7058, `rabbit_node_monitor` uses the list functions exported by
`rabbit_nodes` for everything, except the partition detection code which
is Mnesia-specific and relies on `rabbit_mnesia:cluster_nodes/1`.

Unfortunately, we saw regressions in the Jepsen testsuite during the
3.12.0 release cycle only because that testsuite is not executed on
`main`.

It happens that the partition detection code is using `rabbit_nodes`
list functions in two places where it should have continued to use
`rabbit_mnesia`.

[How]
The fix bug fix simply consists of reverting the two calls to
`rabbit_nodes` back to calls to `rabbit_mnesia` as it used to do. This
seems to improve the situation a lot in the manual testing.

This code will go away with our use of Mnesia in the future, so it's not
a problem to call `rabbit_mnesia` here.

(cherry picked from commit 22516aa)
@dumbbell dumbbell marked this pull request as draft March 21, 2023 15:52
@dumbbell dumbbell marked this pull request as ready for review March 21, 2023 16:28
@acogoluegnes acogoluegnes merged commit 37f4efa into v3.12.x Mar 21, 2023
@acogoluegnes acogoluegnes deleted the mergify/bp/v3.12.x/pr-7686 branch March 21, 2023 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants