You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chukwa.apache.org by "Eric Yang (JIRA)" <ji...@apache.org> on 2010/09/22 05:30:32 UTC
[jira] Created: (CHUKWA-523) Reload collectors doesn't work
Reload collectors doesn't work
------------------------------
Key: CHUKWA-523
URL: https://issues.apache.org/jira/browse/CHUKWA-523
Project: Chukwa
Issue Type: Bug
Components: data collection
Affects Versions: 0.4.0
Environment: Java 6, Mac OS X 10.6
Reporter: Eric Yang
1) Start the agent with some "X" collectors.
2) Update the conf/collectors file with "Y" collector entry and removing "X" collector entry.
3) Doing telnet to port 9093
4) Firing command "reloadcollectors".
After reloading the collectors, agent responses as "OK reloadCollectors done". But agents logs shows trying to connect to old collector "X" and does not connect to new collector.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CHUKWA-523) Reload collectors doesn't work
Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Yang updated CHUKWA-523:
-----------------------------
Fix Version/s: 0.5.0
Assignee: Eric Yang
Status: Patch Available (was: Open)
Simple fix, but takes a long time to debug.
> Reload collectors doesn't work
> ------------------------------
>
> Key: CHUKWA-523
> URL: https://issues.apache.org/jira/browse/CHUKWA-523
> Project: Chukwa
> Issue Type: Bug
> Components: data collection
> Affects Versions: 0.4.0
> Environment: Java 6, Mac OS X 10.6
> Reporter: Eric Yang
> Assignee: Eric Yang
> Fix For: 0.5.0
>
> Attachments: CHUKWA-523.patch
>
>
> 1) Start the agent with some "X" collectors.
> 2) Update the conf/collectors file with "Y" collector entry and removing "X" collector entry.
> 3) Doing telnet to port 9093
> 4) Firing command "reloadcollectors".
>
> After reloading the collectors, agent responses as "OK reloadCollectors done". But agents logs shows trying to connect to old collector "X" and does not connect to new collector.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CHUKWA-523) Reload collectors doesn't work
Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928121#action_12928121 ]
Eric Yang commented on CHUKWA-523:
----------------------------------
Yes, please commit it for me. Thanks (Taking time off to bond with my new born.)
> Reload collectors doesn't work
> ------------------------------
>
> Key: CHUKWA-523
> URL: https://issues.apache.org/jira/browse/CHUKWA-523
> Project: Chukwa
> Issue Type: Bug
> Components: data collection
> Affects Versions: 0.4.0
> Environment: Java 6, Mac OS X 10.6
> Reporter: Eric Yang
> Assignee: Eric Yang
> Fix For: 0.5.0
>
> Attachments: CHUKWA-523.patch
>
>
> 1) Start the agent with some "X" collectors.
> 2) Update the conf/collectors file with "Y" collector entry and removing "X" collector entry.
> 3) Doing telnet to port 9093
> 4) Firing command "reloadcollectors".
>
> After reloading the collectors, agent responses as "OK reloadCollectors done". But agents logs shows trying to connect to old collector "X" and does not connect to new collector.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CHUKWA-523) Reload collectors doesn't work
Posted by "Stuti Awasthi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926194#action_12926194 ]
Stuti Awasthi commented on CHUKWA-523:
--------------------------------------
Hi Eric.
Thanks for providing the patch. I have tested it and it works fine :)
> Reload collectors doesn't work
> ------------------------------
>
> Key: CHUKWA-523
> URL: https://issues.apache.org/jira/browse/CHUKWA-523
> Project: Chukwa
> Issue Type: Bug
> Components: data collection
> Affects Versions: 0.4.0
> Environment: Java 6, Mac OS X 10.6
> Reporter: Eric Yang
> Assignee: Eric Yang
> Fix For: 0.5.0
>
> Attachments: CHUKWA-523.patch
>
>
> 1) Start the agent with some "X" collectors.
> 2) Update the conf/collectors file with "Y" collector entry and removing "X" collector entry.
> 3) Doing telnet to port 9093
> 4) Firing command "reloadcollectors".
>
> After reloading the collectors, agent responses as "OK reloadCollectors done". But agents logs shows trying to connect to old collector "X" and does not connect to new collector.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CHUKWA-523) Reload collectors doesn't work
Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Yang updated CHUKWA-523:
-----------------------------
Attachment: CHUKWA-523.patch
Rearrange reset collector list logic so ChukwaHttpSender gets updated correctly.
> Reload collectors doesn't work
> ------------------------------
>
> Key: CHUKWA-523
> URL: https://issues.apache.org/jira/browse/CHUKWA-523
> Project: Chukwa
> Issue Type: Bug
> Components: data collection
> Affects Versions: 0.4.0
> Environment: Java 6, Mac OS X 10.6
> Reporter: Eric Yang
> Attachments: CHUKWA-523.patch
>
>
> 1) Start the agent with some "X" collectors.
> 2) Update the conf/collectors file with "Y" collector entry and removing "X" collector entry.
> 3) Doing telnet to port 9093
> 4) Firing command "reloadcollectors".
>
> After reloading the collectors, agent responses as "OK reloadCollectors done". But agents logs shows trying to connect to old collector "X" and does not connect to new collector.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CHUKWA-523) Reload collectors doesn't work
Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921903#action_12921903 ]
Eric Yang commented on CHUKWA-523:
----------------------------------
It looks like the reload command has been send through AgentControlSocketListener -> HttpConnector, but ChukwaHttpSender is stuck on the original list. The maximum retries is very large in reliablySend by default (144000 Retries). When ChukwaHttpSender reaches maximum retry count with the original list, it will throw IOException("no collectors") to HttpConnector. HttpConnector will cause agent to shutdown due to no collector to try. The updated collector list is never really deployed to ChukwaHttpSender.
Collector list change should be notifying ChukwaHttpSender as soon as reloadConfiguration is called.
> Reload collectors doesn't work
> ------------------------------
>
> Key: CHUKWA-523
> URL: https://issues.apache.org/jira/browse/CHUKWA-523
> Project: Chukwa
> Issue Type: Bug
> Components: data collection
> Affects Versions: 0.4.0
> Environment: Java 6, Mac OS X 10.6
> Reporter: Eric Yang
>
> 1) Start the agent with some "X" collectors.
> 2) Update the conf/collectors file with "Y" collector entry and removing "X" collector entry.
> 3) Doing telnet to port 9093
> 4) Firing command "reloadcollectors".
>
> After reloading the collectors, agent responses as "OK reloadCollectors done". But agents logs shows trying to connect to old collector "X" and does not connect to new collector.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CHUKWA-523) Reload collectors doesn't work
Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Yang updated CHUKWA-523:
-----------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
Committed by Ari. Thanks.
> Reload collectors doesn't work
> ------------------------------
>
> Key: CHUKWA-523
> URL: https://issues.apache.org/jira/browse/CHUKWA-523
> Project: Chukwa
> Issue Type: Bug
> Components: data collection
> Affects Versions: 0.4.0
> Environment: Java 6, Mac OS X 10.6
> Reporter: Eric Yang
> Assignee: Eric Yang
> Fix For: 0.5.0
>
> Attachments: CHUKWA-523.patch
>
>
> 1) Start the agent with some "X" collectors.
> 2) Update the conf/collectors file with "Y" collector entry and removing "X" collector entry.
> 3) Doing telnet to port 9093
> 4) Firing command "reloadcollectors".
>
> After reloading the collectors, agent responses as "OK reloadCollectors done". But agents logs shows trying to connect to old collector "X" and does not connect to new collector.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CHUKWA-523) Reload collectors doesn't work
Posted by "Ari Rabkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927760#action_12927760 ]
Ari Rabkin commented on CHUKWA-523:
-----------------------------------
Eric, is this committable?
> Reload collectors doesn't work
> ------------------------------
>
> Key: CHUKWA-523
> URL: https://issues.apache.org/jira/browse/CHUKWA-523
> Project: Chukwa
> Issue Type: Bug
> Components: data collection
> Affects Versions: 0.4.0
> Environment: Java 6, Mac OS X 10.6
> Reporter: Eric Yang
> Assignee: Eric Yang
> Fix For: 0.5.0
>
> Attachments: CHUKWA-523.patch
>
>
> 1) Start the agent with some "X" collectors.
> 2) Update the conf/collectors file with "Y" collector entry and removing "X" collector entry.
> 3) Doing telnet to port 9093
> 4) Firing command "reloadcollectors".
>
> After reloading the collectors, agent responses as "OK reloadCollectors done". But agents logs shows trying to connect to old collector "X" and does not connect to new collector.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.