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

Rohit commented on BLUR-46:
---------------------------

What i've noticed :
org.apache.blur.manager.status.QueryStatusManager has cancelQuery method
public void cancelQuery(String table, long uuid) {
    for (QueryStatus status : currentQueryStatusCollection.keySet()) {
      if (status.getUserUuid() == uuid && status.getTable().equals(table)) {
        status.cancelQuery();
      }
    }
  }

This in turn calls 
org.apache.blur.manager.status.QueryStatus cancelQuery Method
public void cancelQuery() {
    _interrupted.set(true);
    _running.set(false);
  }
where _interrupted & _running are two atomicBoolean values.
But i'm unable to figure out how mere changing these boolean value cancels the 
query.

Can some one explain what exactly needs to be done ?

Thanks !
Rohit.
                
> Implement cancelQuery
> ---------------------
>
>                 Key: BLUR-46
>                 URL: https://issues.apache.org/jira/browse/BLUR-46
>             Project: Apache Blur
>          Issue Type: Improvement
>    Affects Versions: 0.2.0
>         Environment: 0.2-dev-removing-old-thrift branch
>            Reporter: Aaron McCurry
>             Fix For: 0.2.0
>
>
> Implement the ability to cancel any currently running queries via 
> cancelQuery.  The thrift api will likely evolve during implementation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to