StaleTaskIdException while fetching result from future

7 views
Skip to first unread message

nanda kishore makkapati

unread,
Feb 16, 2023, 4:15:20 AM2/16/23
to Hazelcast
Hello all,

We are getting the below exception when we try to fetch the result from a durable executor service future. We are using Hazelcast 3.12.7 in embedded mode.

---------- task submit --------------
HazelcastInstance hazelcastInstance = Hazelcast.newHazelcastInstance(cfg);
DurableExecutorService durableExecutorService = hazelcastInstance.getDurableExecutorService("foo");
..
..
..
future = durableExecutorService.submit(task);
...
...
...
...
100: result = future.get();
----------------------------------------------

The line at 100 throws the below exception.

Unable to perform lifecycle action java.util.concurrent.ExecutionException: com.hazelcast.durableexecutor.StaleTaskIdException: The sequence has been overwritten at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveAndThrowIfException(InvocationFuture.java:92)
at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:163)
at com.hazelcast.util.executor.DelegatingFuture.get(DelegatingFuture.java:83)

We are wondering why this execption occurs and is there any way to fix this from client code.

Thanks in advance

Regards
Nanda
Reply all
Reply to author
Forward
0 new messages