You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/04/28 21:06:12 UTC

[jira] [Commented] (NIFI-1824) FileSystemRepository can leave open file handles to data that has been archived and/or deleted

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

ASF GitHub Bot commented on NIFI-1824:
--------------------------------------

GitHub user markap14 opened a pull request:

    https://github.com/apache/nifi/pull/391

    NIFI-1824: If attempting to archive content, and there are no claimant counts for it, ensure that the stream is closed.

    NIFI-1824: If attempting to archive content, and there are no claimant counts for it, ensure that the stream is closed.

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

    $ git pull https://github.com/markap14/nifi NIFI-1824

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

    https://github.com/apache/nifi/pull/391.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 #391
    
----
commit ca61dcbcaa39628f4141a76aed2b4052d50a9353
Author: Mark Payne <ma...@hotmail.com>
Date:   2016-04-28T19:04:23Z

    NIFI-1824: If attempting to archive content, and there are no claimant counts for it, ensure that the stream is closed.

----


> FileSystemRepository can leave open file handles to data that has been archived and/or deleted
> ----------------------------------------------------------------------------------------------
>
>                 Key: NIFI-1824
>                 URL: https://issues.apache.org/jira/browse/NIFI-1824
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>             Fix For: 0.7.0
>
>
> There appears to be an issue such that if ProcessSession.write() is called with a StreamCallback and there is an issue reading or writing content, the ProcessSession will decrement the claim count for the content without ever writing to it. In this case, the File System Repository will still hold open a FileOutputStream but will never have a chance to close it. This can be discovered by running:
> {code}
> lsof -p <nifi pid> | grep archive
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)