You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Alexander Pivovarov (JIRA)" <ji...@apache.org> on 2015/05/04 02:27:06 UTC
[jira] [Created] (HIVE-10589) Thread.wait not in loop
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)