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

When we cancel eviction tasks, we do not clean the scheduledExecutorService #1595

Closed
enesakar opened this Issue Jan 21, 2014 · 2 comments

Comments

Projects
None yet
3 participants
@enesakar
Member

enesakar commented Jan 21, 2014

see the scheduledExecutorService in SecondsBasedEntryTaskScheduler.

We can cancel the scheduledFuture. But I am not sure if the task is removed from queue of Executor service when scheduled future is cancelled.

This is what we need but in jdk 7:
http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ScheduledThreadPoolExecutor.html#setRemoveOnCancelPolicy(boolean)

@pveentjer

This comment has been minimized.

Member

pveentjer commented Jan 21, 2014

Screams for a utility method :) Also needs to be backported to 3.1

enesakar added a commit to enesakar/hazelcast that referenced this issue Jan 23, 2014

fixes hazelcast#1595
cancels schedules tasks when needed

enesakar added a commit to enesakar/hazelcast that referenced this issue Jan 23, 2014

fixes hazelcast#1595
fix removing tasks

enesakar added a commit to enesakar/hazelcast that referenced this issue Jan 23, 2014

fixes hazelcast#1595
fix removing tasks

enesakar added a commit to enesakar/hazelcast that referenced this issue Jan 23, 2014

fixes hazelcast#1595
fix removing tasks

enesakar added a commit to enesakar/hazelcast that referenced this issue Jan 23, 2014

fixes hazelcast#1595
fix removing tasks

@enesakar enesakar closed this in ab34e4e Jan 30, 2014

mdogan added a commit that referenced this issue Jan 30, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment