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

Treat interruptedException from ViewMQStatistics #6975

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

RamonJales
Copy link
Contributor

What was made

  • Add log warn;
  • Maintaining Outage Status

Add log warn

  • Instead of just printing the stack trace to the console, a logging system was used. This allows you to monitor, debug, and understand system behavior.

Maintaining Outage Status

When calling Thread.interrupt(), the interrupt status of the thread is set to true. When a thread throws an InterruptedException exception, the interrupt status is automatically reset to false. This is so that the code that caught the exception has the responsibility for deciding how to handle the interruption.

Preserving the interrupt status means that even after catching the exception and any further handling, the interrupt status must be maintained if the thread is still interrupted.

The reason for preserving the interrupt status is to allow later parts of the code or external libraries to detect that the thread was interrupted, even if the exception was handled locally. This facilitates coordination and communication between threads, especially in situations where the interrupt is used to signal to a thread that it should terminate its operations.

@RamonJales
Copy link
Contributor Author

See #6974.

@amontenegro amontenegro merged commit 8bbdb62 into ORCID:main Feb 19, 2024
@amontenegro
Copy link
Member

Thanks @RamonJales

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