ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (IGNITE-4053) Task error is always printed to the console.
Date Thu, 10 Nov 2016 09:34:00 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-4053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vladimir Ozerov reassigned IGNITE-4053:
---------------------------------------

    Assignee: Vladimir Ozerov  (was: Taras Ledkov)

> Task error is always printed to the console.
> --------------------------------------------
>
>                 Key: IGNITE-4053
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4053
>             Project: Ignite
>          Issue Type: Bug
>          Components: compute
>    Affects Versions: 1.7
>            Reporter: Vladimir Ozerov
>            Assignee: Vladimir Ozerov
>            Priority: Minor
>             Fix For: 1.8
>
>
> Currently if something wrong happens to the task, it prints error to the console:
> {code}
> java.lang.Throwable.printStackTrace(java.lang.Throwable$PrintStreamOrWriter) (line: 653)
> java.lang.Throwable.printStackTrace(java.io.PrintStream) (line: 643)
> org.apache.ignite.internal.util.IgniteUtils.error(org.apache.ignite.IgniteLogger, java.lang.Object,
java.lang.Object, java.lang.Throwable) (line: 4171)
> org.apache.ignite.internal.util.IgniteUtils.error(org.apache.ignite.IgniteLogger, java.lang.Object,
java.lang.Throwable) (line: 4189)
> org.apache.ignite.internal.util.future.GridFutureAdapter.notifyListener(org.apache.ignite.lang.IgniteInClosure)
(line: 269)
> org.apache.ignite.internal.util.future.GridFutureAdapter.notifyListeners() (line: 250)
> org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(java.lang.Object, java.lang.Throwable,
boolean) (line: 380)
> org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(java.lang.Object, java.lang.Throwable)
> org.apache.ignite.internal.processors.task.GridTaskWorker.finishTask(java.lang.Object,
java.lang.Throwable, boolean) (line: 1475)
> org.apache.ignite.internal.processors.task.GridTaskWorker.finishTask(java.lang.Object,
java.lang.Throwable) (line: 1443)
> org.apache.ignite.internal.processors.task.GridTaskWorker$4.apply() (line: 988)
> org.apache.ignite.internal.processors.task.GridTaskWorker$4.apply()
> org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(java.lang.ClassLoader, org.apache.ignite.lang.IgniteOutClosure)
(line: 6516)
> org.apache.ignite.internal.processors.task.GridTaskWorker.result(org.apache.ignite.compute.ComputeJobResult,
java.util.List)
> org.apache.ignite.internal.processors.task.GridTaskWorker.onResponse(org.apache.ignite.internal.GridJobExecuteResponse)
(line: 810)
> {code}
> This happens because there is no logger in the future, hence error is unconditionally
printed to the console.
> We need to fix that. Probably we can inject logger into the task future.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message