hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Pivovarov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-10589) Thread.wait not in loop in HWISessionItem
Date Mon, 04 May 2015 00:30:05 GMT

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

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

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: 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)

Mime
View raw message