You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "Hitesh Shah (JIRA)" <ji...@apache.org> on 2015/01/15 00:50:36 UTC

[jira] [Updated] (TEZ-1950) Incorrect handling of locality counter in TaskAttemptImpl

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

Hitesh Shah updated TEZ-1950:
-----------------------------
    Summary: Incorrect handling of locality counter in TaskAttemptImpl  (was: Incorrect handling of counters in TaskAttemptImpl)

> Incorrect handling of locality counter in TaskAttemptImpl
> ---------------------------------------------------------
>
>                 Key: TEZ-1950
>                 URL: https://issues.apache.org/jira/browse/TEZ-1950
>             Project: Apache Tez
>          Issue Type: Bug
>            Reporter: Hitesh Shah
>
> To maintain task attempt counters, we are using TaskAttempt.TaskAttemptStatus.counters
> Now, counters is not accessed in a thread safe manner. 
> Counters are updated in either StatusUpdaterTransition or modified as part of
> TaskAttempt.TaskAttemptStatus::setLocalityCounter(). 
> In a scenario, where TaskAttempt::getCounters() is called before any status update transition comes back, the locality counter will get lost because the atomic boolean flag is never reset.



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