Yes I had checked the doc you mentioned.

This doc explains custom failover behavior using ComputeTaskSplitAdapter
which internally implements ComputTask.
But I am submitting IgniteRunnable/IgniteCallable tasks using
affinityRun/affinityCall method. In this case I am not able to define
custom failover behavior by overriding ComputeTask.result method.

Thanks,
Prasad


On Mon 14 Oct, 2019, 4:10 PM Ilya Kasnacheev <[email protected]
wrote:

> Hello!
>
> Have you checked the following doc:
>
> https://apacheignite.readme.io/docs/fault-tolerance
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> пт, 11 окт. 2019 г. в 18:37, Prasad Bhalerao <[email protected]
> >:
>
>> Ignite error gives message to implement ComputeTask and override result
>> method to when the task is failed.
>> So I thought of implementing ComputTask to override this behaviour.
>> Ignite documentation describes the same thing but for the task
>> implementing ComputTask and executed with execute method.
>>
>> Thanks,
>> Prasad
>>
>> On Fri 11 Oct, 2019, 8:45 PM Denis Mekhanikov <[email protected]
>> wrote:
>>
>>> Prasad,
>>>
>>> User errors are propagated to the calling site, so you can implement
>>> failover outside of the task’s logic.
>>>
>>> Denis
>>> On 11 Oct 2019, 17:33 +0300, Prasad Bhalerao <
>>> [email protected]>, wrote:
>>>
>>> Hi,
>>>
>>> How to define custom failover behavior when executing IgniteRunnable or
>>> IgniteCallable tasks executed with ignite.compute().affinityRun or
>>> ignite.compute().affinityCall ?
>>>
>>> I want to retry the task on few user errors.
>>>
>>> Implementing additional interface ComputeTask along with IgniteRunnable
>>> is not helping in this case.
>>>
>>> Thanks,
>>> Prasad
>>>
>>>

Reply via email to