[ 
https://issues.apache.org/jira/browse/HIVE-10589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Pivovarov updated HIVE-10589:
---------------------------------------
    Attachment: HIVE-10589.1.patch

reattaching patch #1

> 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
>         Attachments: HIVE-10589.1.patch, rb33797.patch
>
>
> 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)

Reply via email to