-
Notifications
You must be signed in to change notification settings - Fork 628
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
ISPN-13382 Register JMX for Single Port Transport #9592
ISPN-13382 Register JMX for Single Port Transport #9592
Conversation
0a1bad7
to
7c94cb0
Compare
try { | ||
unregisterServerMBeans(); | ||
} catch (Exception e) { | ||
throw new CacheException(e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to log a FATAL/ERROR with (e) and throw (re) because the original issue is this and (e) is only a minor foolow up issue, also not sure whether the server will stop working anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exceptions are unlikely to happen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
throw new CacheException(e); | |
re.addSuppressed(e); |
@tristantarrant |
It was mentioned in DGSUP-32 so I included it here. |
7c94cb0
to
17da365
Compare
@pruivo I've applied your suggestion |
@tristantarrant but https://issues.redhat.com/browse/ISPN-13385 is related to the REST API: |
@pruivo In fact I meant https://issues.redhat.com/browse/ISPN-11385 :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Waiting for CI
Some related failures |
17da365
to
70cf7cd
Compare
SinglePortTest doesn't have a cachemanager and the |
integrated! thanks @tristantarrant ! |
https://issues.redhat.com/browse/ISPN-13382