chukwa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Yang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CHUKWA-98) PidFile issue
Date Tue, 07 Apr 2009 20:45:12 GMT

    [ https://issues.apache.org/jira/browse/CHUKWA-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696736#action_12696736
] 

Eric Yang commented on CHUKWA-98:
---------------------------------

If the program is cleanly exited, it should have pFile.clean() in the main function of the
program.  The rest of the time, it should do nothing.  There shouldn't be any addShutdownHook
for pFile in our code.

> PidFile issue
> -------------
>
>                 Key: CHUKWA-98
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-98
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>            Reporter: Jerome Boulon
>            Priority: Blocker
>
> Some processes like Collectors, demuxManager, etc have to be able to exit if they have
to.
> In that case, watchdog will not restart them since the shutdown hook will have done the
cleanup.
>     pFile = new PidFile("Agent");
>     Runtime.getRuntime().addShutdownHook(pFile);
>     pFile = new PidFile("Collector");
>     Runtime.getRuntime().addShutdownHook(pFile);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message