Skip to content

[improve][broker] Use safeRun to log thread exception in PersistentDispatcherMultipleConsumers#17484

Merged
Technoboy- merged 1 commit intoapache:masterfrom
Technoboy-:use-saferun
Sep 8, 2022
Merged

[improve][broker] Use safeRun to log thread exception in PersistentDispatcherMultipleConsumers#17484
Technoboy- merged 1 commit intoapache:masterfrom
Technoboy-:use-saferun

Conversation

@Technoboy-
Copy link
Copy Markdown
Contributor

Motivation

When I troubleshoot the key_shared subscription issue, there are no error logs on the broker side. I find the error info from the broker dump file. It's a RuntimeException that causes the thread to crash, so no error logs.
image

So suggest using safeRun on the dispatcher thread.

Documentation

  • doc-not-needed
    (Please explain why)

@Technoboy- Technoboy- self-assigned this Sep 6, 2022
@Technoboy- Technoboy- added this to the 2.12.0 milestone Sep 6, 2022
@Technoboy- Technoboy- added type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages area/broker doc-not-needed Your PR changes do not impact docs labels Sep 6, 2022
Copy link
Copy Markdown
Contributor

@nicoloboschi nicoloboschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! we should include it in 2.11

@lhotari lhotari requested a review from eolivelli September 6, 2022 10:56
Copy link
Copy Markdown
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good improvement!

@codelipenghui codelipenghui modified the milestones: 2.12.0, 2.11.0 Sep 7, 2022
@Technoboy- Technoboy- closed this Sep 7, 2022
@Technoboy- Technoboy- reopened this Sep 7, 2022
@eolivelli eolivelli changed the title [improve][broker] Use safeRun to log thread exception. [improve][broker] Use safeRun to log thread exception in PersistentDispatcherMultipleConsumers Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/broker cherry-picked/branch-2.10 cherry-picked/branch-2.11 doc-not-needed Your PR changes do not impact docs type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants