tez-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Mollitor (Jira)" <j...@apache.org>
Subject [jira] [Created] (TEZ-4270) HeartbeatHandlerBase Does Not Need Stop Condition
Date Mon, 25 Jan 2021 02:37:01 GMT
David Mollitor created TEZ-4270:

             Summary: 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

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

View raw message