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

ISPN-4471 MapReduceTask: memory leak with useIntermediateSharedCache #2693

Closed
wants to merge 1 commit into from

Conversation

vblagoje
Copy link

@vblagoje vblagoje commented Jul 3, 2014

Master only. See https://issues.jboss.org/browse/ISPN-4471 for more details

Cache<KOut, VOut> sharedTmpCache = cm.getCache(intermediateCache);
if (sharedTmpCache != null && allMapPhasesResponses != null) {
for (KOut k : allMapPhasesResponses) {
sharedTmpCache.remove(new IntermediateCompositeKey<KOut>(taskId.toString(), k));
Copy link
Member

Choose a reason for hiding this comment

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

maybe removeAsync? you don't need to wait the reply right?

Copy link
Author

Choose a reason for hiding this comment

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

Right, I don't. Good point. Although I think the accompanying test here that checks how tmp cache was indeed cleared might fail. Will see what can do.

Copy link
Member

Choose a reason for hiding this comment

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

hmmm right... So, if you don't find a solution, it is better to keep it synchronous, otherwise the test suite is going to bite us later :P

@vblagoje
Copy link
Author

vblagoje commented Jul 4, 2014

@pruivo update PR according to your feedback! Thanks again

@vblagoje
Copy link
Author

vblagoje commented Jul 4, 2014

@pruivo I kept removeAsync as there are probably only a few values in this particular test. It seems to work locally after repeated trials. Let's see what CI says

@pruivo
Copy link
Member

pruivo commented Jul 7, 2014

the CI looks good. testing and pushing...

@pruivo
Copy link
Member

pruivo commented Jul 7, 2014

integrated! thanks @vblagoje !

@pruivo pruivo closed this Jul 7, 2014
@vblagoje vblagoje deleted the t_4471 branch July 16, 2014 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants