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

Joel Baranick updated GOBBLIN-359:
----------------------------------
    Summary: Logged Job/Task info from TaskExecutor threads sometimes does not 
match the task running  (was: Job/task info stored in MDC sometimes is 
incorrect)

> Logged Job/Task info from TaskExecutor threads sometimes does not match the 
> task running
> ----------------------------------------------------------------------------------------
>
>                 Key: GOBBLIN-359
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-359
>             Project: Apache Gobblin
>          Issue Type: Bug
>            Reporter: Joel Baranick
>            Assignee: Joel Baranick
>
> In some cases the job/task information that is stored in the MDC to improve 
> logging doesn't match the actual task being run on a given thread.  It seems 
> as if the MDC contents are not always being managed in a way that ensures 
> that when a task is complete the MDC data is cleared.
> One place I noticed was in {{TaskExecutor}}, where {{this.taskExecutor}} and 
> {{this.forkExecutor}} are not wrapped with 
> {{ExecutorUtils.loggingDecorator}}.  {{ExecutorUtils.loggingDecorator}} 
> ensures that submitted {{Runnable}} and {{Callable}} instances first clone 
> the MDC and finally reset the MDC.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to