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-675) Bad sleeping condition in FileTailer.java
Date Mon, 17 Dec 2012 08:06:13 GMT

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

Eric Yang commented on CHUKWA-675:
----------------------------------

If there is data, adaptor should be eager to send data.  If there is no new data, then agent
pause 2 seconds until next check.  I think this is a good change.  We had some busy loop issues
in the past, and it was because there is no pause even after there is no new data to stream.
 I think the new patch is the proper behavior.
                
> Bad sleeping condition in FileTailer.java
> -----------------------------------------
>
>                 Key: CHUKWA-675
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-675
>             Project: Chukwa
>          Issue Type: Bug
>          Components: Data Collection
>    Affects Versions: 0.6.0
>            Reporter: Sourygna Luangsay
>            Assignee: Sourygna Luangsay
>            Priority: Minor
>             Fix For: 0.6.0
>
>         Attachments: chukwa-675.patch
>
>
> Current "if condition" in the run() method is wrong.
> As a consequence, a big file to tail will take a lot of time.
> See: http://mail-archives.apache.org/mod_mbox/incubator-chukwa-dev/201212.mbox/%3CCAOTz1wD-abkJwh5GBnUi3o6xj2kiqYf7HvGDg80mdEk4h6y6+w@mail.gmail.com%3E

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message