[ https://issues.apache.org/jira/browse/HIVE-10589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Pivovarov updated HIVE-10589: --------------------------------------- Summary: Thread.wait not in loop in HWISessionItem (was: Thread.wait not in loop) > Thread.wait not in loop in HWISessionItem > ----------------------------------------- > > 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)