Oleg Zhurakousky updated NIFI-2778:
    Status: Patch Available  (was: In Progress)

Basically current patch relies on using a different constructor when creating 
IndexSearch (the one that takes ExecutorService as additional argument). Once 
that is accomplished then a simple Thread.interrupt() can be used to cancel the 
search. Such interrupt is triggered by canceling the Future produced by 
submitting QueryRunnable.

> If a Provenance Query is canceled, the repository doesn't stop immediately
> --------------------------------------------------------------------------
>                 Key: NIFI-2778
>                 URL: https://issues.apache.org/jira/browse/NIFI-2778
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Mark Payne
>            Assignee: Oleg Zhurakousky
>             Fix For: 1.1.0
> When a Provenance Query is issued and then canceled, the result object is 
> marked as canceled, but repository continues to search. It should instead 
> stop querying lucene and stop reading events from the provenance log files

This message was sent by Atlassian JIRA

Reply via email to