ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy Pavlov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-7904) ComputeTaskFuture.get() throws incorrect exception if ComputeTask.result() throws IgniteException
Date Mon, 09 Apr 2018 11:27:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-7904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16430396#comment-16430396
] 

Dmitriy Pavlov commented on IGNITE-7904:
----------------------------------------

Test run seems to be as red as usual.

> ComputeTaskFuture.get() throws incorrect exception if ComputeTask.result() throws IgniteException
> -------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-7904
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7904
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Stanislav Lukyanov
>            Assignee: Stanislav Lukyanov
>            Priority: Major
>             Fix For: 2.5
>
>
> ComputeTask.result() javadoc says: "Throws: IgniteException - If handling a job result
caused an error effectively rejecting a failover. This exception will be thrown out of ComputeTaskFuture.get()
method."
> However, GridFutureAdapter calls IgniteUtils.cast(Throwable) on the exception before
throwing it from get(), and the latter method trims the stack trace to the first occurence
of an IgniteCheckedException. Because of that, get() throws not the IgniteException thrown
from the ComputeTask.result() but one of its causes.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message