You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chukwa.apache.org by "Abhijit Dhar (Created) (JIRA)" <ji...@apache.org> on 2012/04/17 01:04:16 UTC

[jira] [Created] (CHUKWA-640) JVM not terminating if agent is not started

JVM not terminating if agent is not started
-------------------------------------------

                 Key: CHUKWA-640
                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
             Project: Chukwa
          Issue Type: Bug
          Components: Data Collection
    Affects Versions: 0.5.0
            Reporter: Abhijit Dhar


I am seeing that if my agents are not up, it is preventing my program to terminate. 
I'm using ChukwaDailyRollingFileAppender. 
I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.

Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Abhijit Dhar (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Abhijit Dhar updated CHUKWA-640:
--------------------------------

    Attachment: patch2.txt

Patch attached
                
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400247#comment-13400247 ] 

Hudson commented on CHUKWA-640:
-------------------------------

Integrated in Chukwa-trunk #447 (See [https://builds.apache.org/job/Chukwa-trunk/447/])
    CHUKWA-640.  Revert changes to async adaptor registration. (Revision 1353372)

     Result = FAILURE
eyang : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1353372
Files : 
* /incubator/chukwa/trunk/CHANGES.txt
* /incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java

                
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>            Assignee: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang reassigned CHUKWA-640:
--------------------------------

    Assignee: Abhijit Dhar
    
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>            Assignee: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Abhijit Dhar (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Abhijit Dhar updated CHUKWA-640:
--------------------------------

    Status: Patch Available  (was: Open)
    
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Eric Yang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255280#comment-13255280 ] 

Eric Yang commented on CHUKWA-640:
----------------------------------

+1 looks good.
                
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang reopened CHUKWA-640:
------------------------------

    
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>            Assignee: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang reopened CHUKWA-640:
------------------------------


Made a mistake in commit.
                
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>            Assignee: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang updated CHUKWA-640:
-----------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)
    
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>            Assignee: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259271#comment-13259271 ] 

Eric Yang commented on CHUKWA-640:
----------------------------------

I just committed this.  Thanks Abhijit.
                
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>            Assignee: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259275#comment-13259275 ] 

Hudson commented on CHUKWA-640:
-------------------------------

Integrated in Chukwa-trunk #443 (See [https://builds.apache.org/job/Chukwa-trunk/443/])
    CHUKWA-640. Use timer thread to schedule adatpor registration. (Abhijit Dhar via Eric Yang) (Revision 1328977)

     Result = SUCCESS
eyang : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1328977
Files : 
* /incubator/chukwa/trunk/CHANGES.txt

                
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>            Assignee: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400240#comment-13400240 ] 

Eric Yang commented on CHUKWA-640:
----------------------------------

This patch is making registration of the adaptors async.  This will cause data loss, if the registration is never succeeded during the life cycle of the running program.  TestAdaptorController test cases are failing due to the registration keeping the agent controlling port busy and new agent was unable to bind to the same port due to race conditions between agent and parent program.  Given the reasons, I think we should not allow async adaptor registration.  Instead, it may be better to use SocketAppender with SocketAdaptor, if you like to allow your program continue execution without logging.
                
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>            Assignee: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284264#comment-13284264 ] 

Hudson commented on CHUKWA-640:
-------------------------------

Integrated in Chukwa-trunk #445 (See [https://builds.apache.org/job/Chukwa-trunk/445/])
    CHUKWA-640. Use timer thread to schedule adaptor registration. (Abhijit Dhar via Eric Yang) (Revision 1343117)

     Result = SUCCESS
eyang : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1343117
Files : 
* /incubator/chukwa/trunk/CHANGES.txt
* /incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java

                
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>            Assignee: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CHUKWA-640) JVM not terminating if agent is not started

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang resolved CHUKWA-640.
------------------------------

    Resolution: Fixed

I just committed this again.
                
> JVM not terminating if agent is not started
> -------------------------------------------
>
>                 Key: CHUKWA-640
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-640
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.5.0
>            Reporter: Abhijit Dhar
>            Assignee: Abhijit Dhar
>         Attachments: patch2.txt
>
>
> I am seeing that if my agents are not up, it is preventing my program to terminate. 
> I'm using ChukwaDailyRollingFileAppender. 
> I debugged and found that ChukwaAgentController tries to retry and schedules to create a new adapter.
> Since it is not a daemon thread, my program just keeps waiting for all these retry scheduled threads to finish even after my main method finishes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira