Skip to content

Conversation

@michaelklishin
Copy link
Collaborator

In certain shutdown scenarios this function on
Erlang 26 runs into exceptions that stem from
application_controller.

The objective of this function is to be
an exception-safe version of
application:which_applications/1, so let's
handle more cases.

This helps certain test suites avoid exceptions
(process crash reports) logged during shutdown,
which makes CT helpers fail test run even
though there were no exceptions in RabbitMQ
itself, and all the exception indicates is a
certain edge case (during system shutdown)
that application_controller does not care to handle.

@michaelklishin michaelklishin changed the title Make more resilient rabbit_misc:which_applications Make rabbit_misc:which_applications/0 more resilient May 24, 2024
In certain shutdown scenarios this function on
Erlang 26 runs into exceptions that stem from
application_controller.

The objective of this function is to be
an exception-safe version of
application:which_applications/1, so let's
handle more cases.

This helps certain test suites avoid exceptions
(process crash reports) logged during shutdown,
which makes CT helpers fail test run even
though there were no exceptions in RabbitMQ
itself, and all the exception indicates is a
certain edge case (during system shutdown)
that application_controller does not care to handle.
@michaelklishin michaelklishin force-pushed the mk-which-applications-handle-more-exceptions branch from 5961c79 to ca09440 Compare May 24, 2024 23:57
@michaelklishin michaelklishin merged commit 8b35972 into main May 25, 2024
@michaelklishin michaelklishin deleted the mk-which-applications-handle-more-exceptions branch May 25, 2024 01:03
michaelklishin added a commit that referenced this pull request May 25, 2024
Make rabbit_misc:which_applications/0 more resilient (backport #11322)
michaelklishin added a commit that referenced this pull request May 25, 2024
Make rabbit_misc:which_applications/0 more resilient (backport #11322) (backport #11323)
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.

2 participants