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.