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

Mark Payne edited comment on NIFI-743 at 7/1/15 12:02 AM:
----------------------------------------------------------

Ah, I gotcha. I think OnShutdown or OnStopped, either one, is fine. The issue 
here is likely that there's no OnRemoved method to cleanup. Should have 
something like:

{code}
@OnRemoved
public void cleanup() {
    stateFile.delete();
}
{code}

That way, even though the file gets created, it will be cleaned up properly as 
well.

Though if we wanted to avoid creating the file all together, we could move the 
code that creates the file to @OnStopped.


was (Author: markap14):
Ah, I gotcha. I think OnShutdown or OnStopped, either one, is fine. The issue 
here is likely that there's no OnRemoved method to cleanup. Should have 
something like:

@OnRemoved
public void cleanup() {
    stateFile.delete();
}

That way, even though the file gets created, it will be cleaned up properly as 
well.

Though if we wanted to avoid creating the file all together, we could move the 
code that creates the file to @OnStopped.

> .getSolr-mock-processor and .httpCache-mock-processor files in conf dir
> -----------------------------------------------------------------------
>
>                 Key: NIFI-743
>                 URL: https://issues.apache.org/jira/browse/NIFI-743
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>            Reporter: Mark Payne
>             Fix For: 0.2.0
>
>
> I'm not sure where these are coming from but when I do a clean build, I'm 
> ending up with 2 files in the conf/ directory that shouldn't be there: 
> ".httpCache-mock-processor" and ".getSolr-mock-processor".
> Not sure if these were created when I did the build or when I launched the 
> application, but either way they shouldn't be there.



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

Reply via email to