You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tez.apache.org by "László Bodor (Jira)" <ji...@apache.org> on 2021/12/26 17:37:00 UTC

[jira] [Resolved] (TEZ-4270) HeartbeatHandlerBase Does Not Need Stop Condition

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

László Bodor resolved TEZ-4270.
-------------------------------
    Resolution: Fixed

> HeartbeatHandlerBase Does Not Need Stop Condition
> -------------------------------------------------
>
>                 Key: TEZ-4270
>                 URL: https://issues.apache.org/jira/browse/TEZ-4270
>             Project: Apache Tez
>          Issue Type: Improvement
>            Reporter: David Mollitor
>            Assignee: David Mollitor
>            Priority: Minor
>             Fix For: 0.10.2
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Currently, the code checks if the thread is interrupted or if some {{stop}} variable is set.  It does not need to do both.  Interrupting a thread is the way to trigger it to stop, no need to add two ways of stopping it.
> This is especially useful because the thread is a protected variable and can be interrupted from inheriting classes which may not know about this {{stop}} variable.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)