poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57200] SXSSF saving fails sometimes as TempFile creation fails
Date Thu, 05 May 2016 13:58:58 GMT

Yaniv Kunda <yaniv@kundas.net> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #9 from Yaniv Kunda <yaniv@kundas.net> ---
This does not solve the problem of a long-running process (e.g. server) that is
trying to create the poifiles temp directory only once during its lifetime.

In the event the directory gets deleted by an external process (temp file
cleaner) while the server process is running, the next temp file creation will

Possible solutions:
1) Lock the poifiles directory after it is created (this can probably be done
easily by keeping an open file in the directory for the lifetime of the JVM)
2) Ensure that poifiles is created each time before creating a temp file
3) Stop using the poifiles dir - segregating temp files serves no purpose other
than perhaps ease of debugging.

I'll be happy to provide a patch - just reply if one of the solutions I
suggested is acceptable.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message