flume-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLUME-3222) java.nio.file.NoSuchFileException thrown when files are being deleted from the TAILDIR source
Date Wed, 30 May 2018 06:55:00 GMT

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

ASF GitHub Bot commented on FLUME-3222:
---------------------------------------

GitHub user majorendre opened a pull request:

    https://github.com/apache/flume/pull/208

    FLUME-3222 Fix for NoSuchFileException thrown when files are being de…

    …leted from the TAILDIR source
    
    We fetch file names from a directory and later we fetch inodes.
    If there is a delete between these operations this problem occurs.
    Reproduced from unit test.
    Added exception handling to handle this case. 
    It is enough to ignore the NoSuchFileException and continue.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/majorendre/flume FLUME-3222

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flume/pull/208.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #208
    
----
commit c291b621514f5aa1e0f9fcdc5ba897c66d4ce43f
Author: Endre Major <emajor@...>
Date:   2018-05-29T14:31:27Z

    FLUME-3222 Fix for NoSuchFileException thrown when files are being deleted from the TAILDIR
source

----


> java.nio.file.NoSuchFileException thrown when files are being deleted from the TAILDIR
source
> ---------------------------------------------------------------------------------------------
>
>                 Key: FLUME-3222
>                 URL: https://issues.apache.org/jira/browse/FLUME-3222
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Ferenc Szabo
>            Assignee: Endre Major
>            Priority: Major
>
> TailDirSource should handle NoSuchFileException with a WARN level log message because
users can delete files from the tailed directory.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@flume.apache.org
For additional commands, e-mail: issues-help@flume.apache.org


Mime
View raw message