I was trying to check out if I can cancel a distributed task using future's cancel method based on timeout. But I found that the task never timed out. Here is the reference code:
The TimeWastingCallable sleeps for more 1 second (actually more than 10 sec) but the timeout exception does not occur at all. Hence the cancel never gets executed. Can you please let me know if there is any reason for this to happen. Am I missing something?
- Srini
You are not. It was a bug that we recently fixed. Try the latest beta and report back!
Regards,
Vladimir