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

ASF subversion and git services commented on FLUME-3294:
--------------------------------------------------------

Commit 0602cb032b44cba1d660c3ff4405b3504e63118b in flume's branch 
refs/heads/trunk from [~turcsanyip]
[ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=0602cb0 ]

FLUME-3294 Fix polling logic in TaildirSource

TaildirSource.process() implements the correct polling logic now. It returns
Status.READY / Status.BACKOFF which controls the common backoff sleeping
mechanism implemented in PollableSourceRunner.PollingRunner (instead of
always returning Status.READY and sleeping inside the method which was
an incorrect behaviour).

This closes #241

Reviewers: Endre Major, Denes Arvay

(Peter Turcsanyi via Ferenc Szabo)


> Fix polling logic in TaildirSource
> ----------------------------------
>
>                 Key: FLUME-3294
>                 URL: https://issues.apache.org/jira/browse/FLUME-3294
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: Peter Turcsanyi
>            Assignee: Peter Turcsanyi
>            Priority: Major
>             Fix For: 1.9.0
>
>
> {{TaildirSource.process()}} always returns {{Status.READY}} and sleeps inside 
> the method.
>  It should return {{Status.READY}} / {{Status.BACKOFF}} and this status would 
> control the common backoff sleeping mechanism implemented in 
> {{PollableSourceRunner.PollingRunner}}.
> This is an old issue, but due to the changes implemented in FLUME-3101, it 
> can lead to unnecessary waiting cycles. So it must be fixed now.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to