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

fix AutoCloseableLifecycleComponent close exception log #4042

Merged

Conversation

AnonHxy
Copy link
Contributor

@AnonHxy AnonHxy commented Aug 2, 2023

Descriptions of the changes in this PR:

Motivation

If closed with exception, the log will always be failed to close AutoCloseableLifecycleComponent. It will be better to print the componentName instead of the class name.

Changes

Print the componentName instead of AutoCloseableLifecycleComponent class name if closed with exception

@AnonHxy
Copy link
Contributor Author

AnonHxy commented Aug 2, 2023

rerun failure checks

1 similar comment
@AnonHxy
Copy link
Contributor Author

AnonHxy commented Aug 3, 2023

rerun failure checks

Copy link
Member

@horizonzy horizonzy left a comment

Choose a reason for hiding this comment

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

Make sense.

@AnonHxy
Copy link
Contributor Author

AnonHxy commented Aug 9, 2023

rerun failure checks

@AnonHxy
Copy link
Contributor Author

AnonHxy commented Aug 9, 2023

@StevenLuMT @eolivelli @zymap PTAL

Copy link
Member

@horizonzy horizonzy left a comment

Choose a reason for hiding this comment

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

Some other places also need tune.

log.info("Load lifecycle component : {}", StatsProviderService.class.getName());

@AnonHxy
Copy link
Contributor Author

AnonHxy commented Aug 9, 2023

Some other places also need tune.

log.info("Load lifecycle component : {}", StatsProviderService.class.getName());

Thanks. Updated.

Copy link
Member

@horizonzy horizonzy left a comment

Choose a reason for hiding this comment

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

LGTM

@zymap zymap merged commit 269374f into apache:master Aug 29, 2023
16 checks passed
zymap pushed a commit that referenced this pull request Aug 29, 2023
Descriptions of the changes in this PR:
### Motivation

If closed with exception, the log will always be `failed to close AutoCloseableLifecycleComponent`.  It will be better to print the `componentName` instead of the class name.

### Changes

Print the `componentName` instead of `AutoCloseableLifecycleComponent` class name if closed with exception

(cherry picked from commit 269374f)
zymap pushed a commit that referenced this pull request Dec 7, 2023
Descriptions of the changes in this PR:
### Motivation

If closed with exception, the log will always be `failed to close AutoCloseableLifecycleComponent`.  It will be better to print the `componentName` instead of the class name.

### Changes

Print the `componentName` instead of `AutoCloseableLifecycleComponent` class name if closed with exception

(cherry picked from commit 269374f)
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
Descriptions of the changes in this PR:
### Motivation

If closed with exception, the log will always be `failed to close AutoCloseableLifecycleComponent`.  It will be better to print the `componentName` instead of the class name.

### Changes

Print the `componentName` instead of `AutoCloseableLifecycleComponent` class name if closed with exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants