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

Do not retry TargetNotMemberException when invocation made on target #10404

Merged

Conversation

sancar
Copy link
Contributor

@sancar sancar commented Apr 20, 2017

Invocation made ProxyManager.initialize(ClientProxy) was on connection
to be able to prevent it from retrying. It was a workaround that does not
comply with ClientInvocation API hence failed today.

In this pr, I made the proxy creation invocation on address as intended.
And I changed invocation exception handling so that it will not be retried
when given address not a member anymore. Retrying does not make sense in
this case.

ClientLockWithTerminationTest.testLockOnClient_withNodeCrash was failing
because it was retrying creating proxy on closed member until
clientInvocationTimeout(120 seconds) hit and then throws OperationTimeoutException.

This pr #10370 made issue apparent.
It was waiting for 120 seconds unncessarily, then throwing a
retryableException(instead OperationTimeoutException). Because of retyable
exception there issue was hidden.

because fix needs changes there.

fixes #3422

@sancar sancar added this to the 3.8.2 milestone Apr 20, 2017
@sancar sancar self-assigned this Apr 20, 2017
@sancar
Copy link
Contributor Author

sancar commented Apr 20, 2017

run-lab-run

1 similar comment
@sancar
Copy link
Contributor Author

sancar commented Apr 20, 2017

run-lab-run

@devOpsHazelcast
Copy link
Collaborator

@sancar sancar force-pushed the fix/targetNotMember/maint3.x branch from 10448bf to 6f737a0 Compare April 20, 2017 14:47
@devOpsHazelcast
Copy link
Collaborator

@sancar
Copy link
Contributor Author

sancar commented Apr 20, 2017

run-lab-run

@devOpsHazelcast
Copy link
Collaborator

@sancar sancar force-pushed the fix/targetNotMember/maint3.x branch from 6f737a0 to f1d4bcc Compare April 21, 2017 07:31
@devOpsHazelcast
Copy link
Collaborator

Test PASSed.

@sancar sancar force-pushed the fix/targetNotMember/maint3.x branch from f1d4bcc to cd5902e Compare April 26, 2017 07:36
@devOpsHazelcast
Copy link
Collaborator

@sancar sancar force-pushed the fix/targetNotMember/maint3.x branch 2 times, most recently from 3b39c3b to 89de4c1 Compare April 26, 2017 07:56
@devOpsHazelcast
Copy link
Collaborator

Test PASSed.

1 similar comment
@devOpsHazelcast
Copy link
Collaborator

Test PASSed.

@sancar sancar force-pushed the fix/targetNotMember/maint3.x branch from 89de4c1 to 3c7541b Compare April 26, 2017 12:12
Invocation made `ProxyManager.initialize(ClientProxy)` was on connection
to be able to prevent it from retrying. It was a workaround that does not
comply with ClientInvocation API hence failed today.

In this pr, I made the proxy creation invocation on address as intended.
And I changed invocation exception handling so that it will not be retried
when given address not a member anymore. Retrying does not make sense in
this case.

ClientLockWithTerminationTest.testLockOnClient_withNodeCrash was failing
because it was retrying creating proxy on closed member until
clientInvocationTimeout(120 seconds) hit and then throws OperationTimeoutException.

This pr hazelcast#10370 made issue apparent.
It was waiting for 120 seconds unncessarily, then throwing a
retryableException(instead OperationTimeoutException). Because of retyable
exception there issue was hidden.

because fix needs changes there.

fixes hazelcast#3422
@devOpsHazelcast
Copy link
Collaborator

Test PASSed.

@sancar sancar merged commit 1164997 into hazelcast:maintenance-3.x Apr 28, 2017
@sancar sancar deleted the fix/targetNotMember/maint3.x branch April 28, 2017 07:24
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants