Alexander Pivovarov created HIVE-10589:
------------------------------------------
Summary: Thread.wait not in loop
Key: HIVE-10589
URL: https://issues.apache.org/jira/browse/HIVE-10589
Project: Hive
Issue Type: Improvement
Components: Web UI
Reporter: Alexander Pivovarov
Assignee: Alexander Pivovarov
Priority: Minor
Usually in multi-threading programming Thread.wait() should be in "while" loop.
So, "if" statement below should be replaced with "while". HWISessionItem
(121-128)
{code}
synchronized (runnable) {
if (status != WebSessionItemStatus.READY) {
try {
runnable.wait();
} catch (Exception ex) {
}
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)