Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-7904

ComputeTaskFuture.get() throws incorrect exception if ComputeTask.result() throws IgniteException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: compute
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                slukyanov Stanislav Lukyanov
                Reporter:
                slukyanov Stanislav Lukyanov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: