Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STORM-3938] Unhandled InterruptedException and missing log in Supervisor's close(… #3554

Closed
wants to merge 2 commits into from

Conversation

LoggingResearch
Copy link

What is the purpose of the change

This PR addresses the handling of InterruptedException in the close() method of the Supervisor class. The changes include:

Adding a separate catch block for InterruptedException that is thrown by the close() method of the AsyncLocalizer class.
Logging the InterruptedException separately to ensure that the exception type and message are correctly recorded in the logs.
The motivation behind this change is to properly handle the scenario where the close() method of AsyncLocalizer is interrupted, which is a situation that was not specifically addressed in the original code. By catching and logging the InterruptedException separately, we can provide more specific information in the logs when such an event occurs.

How was the change tested

Built storm-server. Validated logging on dev supervisor.

@rzo1
Copy link
Contributor

rzo1 commented Aug 7, 2023

Can you rebase @LoggingResearch

Copy link
Contributor

Choose a reason for hiding this comment

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

Exception needs to be removed from throws

Copy link
Contributor

@rzo1 rzo1 left a comment

Choose a reason for hiding this comment

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

see comment.

@rzo1
Copy link
Contributor

rzo1 commented Oct 23, 2023

@LoggingResearch any updates on this?

@rzo1
Copy link
Contributor

rzo1 commented Nov 9, 2023

IDE reports, that this exception isn't thrown at the place the catch block was added. I am closing this PR now.

@rzo1 rzo1 closed this Nov 9, 2023
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