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

[ISSUE #4096] InterruptedExceptions should never be ignored in the code.[EtcdMetaService] #4636

Conversation

HarshSawarkar
Copy link
Contributor

Fixes #4096 .

Motivation

Earlier InterruptedExceptions were being being ignored as it were only being logged.

Modifications

Rewrite the catch blocks by restoring interrupted states through the invocation of Thread.interrupt().

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

…ioned in the solution,by restoring interrupted state.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to the Apache EventMesh community!!
This is your first PR in our project. We're very excited to have you onboard contributing. Your contributions are greatly appreciated!

Please make sure that the changes are covered by tests.
We will be here shortly.
Let us know if you need any help!

Want to get closer to the community?

WeChat Assistant WeChat Public Account Slack
Join Slack Chat

Mailing Lists:

Name Description Subscribe Unsubscribe Archive
Users User support and questions mailing list Subscribe Unsubscribe Mail Archives
Development Development related discussions Subscribe Unsubscribe Mail Archives
Commits All commits to repositories Subscribe Unsubscribe Mail Archives
Issues Issues or PRs comments and reviews Subscribe Unsubscribe Mail Archives

@pandaapo pandaapo changed the title Modified the catch blocks for handling InterruptedExceptions in EtcdMetaService. [ISSUE #4096] InterruptedExceptions should never be ignored in the code.[EtcdMetaService] Dec 11, 2023
Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (24873dd) 17.28% compared to head (d6e0911) 17.27%.

Files Patch % Lines
...e/eventmesh/meta/etcd/service/EtcdMetaService.java 0.00% 7 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4636      +/-   ##
============================================
- Coverage     17.28%   17.27%   -0.01%     
  Complexity     1741     1741              
============================================
  Files           792      792              
  Lines         29697    29703       +6     
  Branches       2567     2567              
============================================
  Hits           5132     5132              
- Misses        24090    24096       +6     
  Partials        475      475              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Pil0tXia Pil0tXia left a comment

Choose a reason for hiding this comment

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

LGTM

@xwm1992 xwm1992 merged commit 958b041 into apache:master Dec 11, 2023
11 of 13 checks passed
@xwm1992 xwm1992 added this to the 1.10 milestone Dec 12, 2023
@HarshSawarkar HarshSawarkar deleted the 4096-EtcdMetaService-InterruptedExceptions-should-never-be-ignored-in-the-code branch December 13, 2023 11:03
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.

[Enhancement] InterruptedExceptions should never be ignored in the code.[EtcdMetaService]
5 participants