Description
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 storeOutputStream in all casses. Actually, it is closed only by the method rewind(), but it should be also closed by calling the overall close() method of the whole InputStream.
A simple patch is provided.