Jonathan Eagles created TEZ-2755:
------------------------------------

             Summary: Fix findbugs warning in TezClient
                 Key: TEZ-2755
                 URL: https://issues.apache.org/jira/browse/TEZ-2755
             Project: Apache Tez
          Issue Type: Bug
            Reporter: Jonathan Eagles
            Assignee: Jonathan Eagles


{code}
Multithreaded correctness Warnings
Code    Warning
SWL     org.apache.tez.client.TezClient.stop() calls Thread.sleep() with a lock 
held
        

Bug type SWL_SLEEP_WITH_LOCK_HELD (click for details)
In class org.apache.tez.client.TezClient
In method org.apache.tez.client.TezClient.stop()
At TezClient.java:[line 584]
Details
SWL_SLEEP_WITH_LOCK_HELD: Method calls Thread.sleep() with a lock held

This method calls Thread.sleep() with a lock held. This may result in very poor 
performance and scalability, or a deadlock, since other threads may be waiting 
to acquire the lock. It is a much better idea to call wait() on the lock, which 
releases the lock and allows other threads to run. 
{code}



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

Reply via email to