[ 
https://issues.apache.org/jira/browse/TAJO-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497127#comment-14497127
 ] 

ASF GitHub Bot commented on TAJO-1412:
--------------------------------------

Github user navis commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/432#discussion_r28468938
  
    --- Diff: tajo-core/src/main/java/org/apache/tajo/master/QueryInfo.java ---
    @@ -119,14 +119,37 @@ public int getQueryMasterClientPort() {
         return queryMasterClientPort;
       }
     
    -  public TajoProtos.QueryState getQueryState() {
    +  public synchronized TajoProtos.QueryState getQueryState() {
    --- End diff --
    
    queryState is volatile, so it does not need a lock. But for waitState 
method, I need a lock to synchronize. I just choosen "this" not to add any 
other object.


> Add polling API in TajoMasterClientProtocol to wait result effectively
> ----------------------------------------------------------------------
>
>                 Key: TAJO-1412
>                 URL: https://issues.apache.org/jira/browse/TAJO-1412
>             Project: Tajo
>          Issue Type: Improvement
>          Components: client
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>
> Currently, client polls master node to acquire result frequently (every 500 
> msec), which seemed not small enough for light queries and not big enough for 
> heavy queries.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to