tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-2903) RereadableInputStream does not close storeOutputStream in all casses in, temporary files remain locked
Date Wed, 10 Jul 2019 12:08:00 GMT

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

Hudson commented on TIKA-2903:
------------------------------

SUCCESS: Integrated in Jenkins build Tika-trunk #1673 (See [https://builds.apache.org/job/Tika-trunk/1673/])
TIKA-2903 -- close RereadableStream's storeOutputStream via Peter Fassev (tallison: [https://github.com/apache/tika/commit/ce693ed2acf5f70c6e8d919229be96456bf0ce9e])
* (edit) tika-core/src/main/java/org/apache/tika/utils/RereadableInputStream.java


> 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
>         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)

Mime
View raw message