You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (JIRA)" <ji...@apache.org> on 2019/07/10 14:00:00 UTC

[jira] [Resolved] (TIKA-2903) RereadableInputStream does not close storeOutputStream in all casses in, temporary files remain locked

     [ https://issues.apache.org/jira/browse/TIKA-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Allison resolved TIKA-2903.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 1.22

Thank you [~fassev@gmx.de]!!!  1.22 should be out in a few weeks...

> RereadableInputStream does not close storeOutputStream in all casses in, temporary files remain locked
> ------------------------------------------------------------------------------------------------------
>
>                 Key: TIKA-2903
>                 URL: https://issues.apache.org/jira/browse/TIKA-2903
>             Project: Tika
>          Issue Type: Bug
>    Affects Versions: 1.21
>            Reporter: Peter Fassev
>            Priority: Critical
>              Labels: patch
>             Fix For: 1.22
>
>         Attachments: RereadableInputStream.patch
>
>
> The TikaParser leaves a lot of temporary files with the name TIKA_streamstore_*.temp in the temp folder. Many of them are locked and may be deleted only after restart of the by the java process.
> The files are created by the *org.apache.tika.utils.RereadableInputStream*, which obviously does not close the {color:#FF0000}storeOutputStream{color} in all casses. Actually, it is closed only by the method rewind(), but it should be also closed by calling the overall{color:#FF0000} close(){color} method of the whole InputStream.
> A simple patch is provided.



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