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 a potentially misleading exception message #8738
Fix a potentially misleading exception message #8738
Conversation
👍 |
if (state == NodeState.SHUT_DOWN) { | ||
throw new HazelcastInstanceNotActiveException("This node is shut down! Operation: " + op); | ||
throw new HazelcastInstanceNotActiveException(localMember + " is shut down! Operation: " + op); |
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.
doesn't this message still contain this
? See toString here
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.
good point
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.
perhaps it's ok to use an address here? wdyt?
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.
seems better to me.
👍 |
Test PASSed. |
Exception can be sent over network hence using "this node" is not great. See hazelcast#8736
209361d
to
4de69e4
Compare
@mdogan, @metanet, @ahmetmircik: I changed it to use addresses instead of members. Are you ok with it? |
yep |
Test PASSed. |
Exception can be sent over network hence using "this node"
is not great.
See #8736