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

Remove destroyed cache proxy from owner CacheManager on destroy #8198

Merged
merged 1 commit into from May 17, 2016

Conversation

serkan-ozal
Copy link
Contributor

Fixes #8186

@@ -98,16 +98,13 @@ public final void destroy() {
context.removeProxy(this);
try {
new ClientInvocation(getClient(), clientMessage).invoke().get();
postDestroy();
Copy link
Member

Choose a reason for hiding this comment

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

can it be more appropriate to put postDestroy() in a finally block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have just wanted it called only when invocation is successful. We may introduce another hook method for error case like onDestroyError(Exception e)

@emrahkocaman
Copy link
Contributor

👍

1 similar comment
@ahmetmircik
Copy link
Member

👍

@serkan-ozal
Copy link
Contributor Author

verify

@serkan-ozal serkan-ozal merged commit 819029a into hazelcast:master May 17, 2016
@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.

ICache::destroy should remove cache itself from the owner CacheManager
4 participants