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 a potentially misleading exception message #8738

Conversation

jerrinot
Copy link
Contributor

Exception can be sent over network hence using "this node"
is not great.

See #8736

@metanet
Copy link
Contributor

metanet commented Aug 17, 2016

👍

if (state == NodeState.SHUT_DOWN) {
throw new HazelcastInstanceNotActiveException("This node is shut down! Operation: " + op);
throw new HazelcastInstanceNotActiveException(localMember + " is shut down! Operation: " + op);
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point

Copy link
Contributor Author

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?

Copy link
Member

Choose a reason for hiding this comment

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

seems better to me.

@mdogan
Copy link
Contributor

mdogan commented Aug 17, 2016

👍

@devOpsHazelcast
Copy link
Collaborator

Test PASSed.

Exception can be sent over network hence using "this node"
is not great.

See hazelcast#8736
@jerrinot jerrinot force-pushed the fixes/node-state-misleading-exception/master branch from 209361d to 4de69e4 Compare August 18, 2016 09:43
@jerrinot
Copy link
Contributor Author

@mdogan, @metanet, @ahmetmircik: I changed it to use addresses instead of members. Are you ok with it?

@metanet
Copy link
Contributor

metanet commented Aug 18, 2016

yep

@devOpsHazelcast
Copy link
Collaborator

Test PASSed.

@jerrinot jerrinot merged commit 509fa12 into hazelcast:master Aug 18, 2016
@jerrinot jerrinot deleted the fixes/node-state-misleading-exception/master branch August 18, 2016 12:21
@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source: Internal PR or issue was opened by an employee Team: Core Type: Defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants