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 Tue, 30 Aug 2016 10:41:44 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=57200

--- Comment #10 from Audun Røe <audunroe@gmail.com> ---
Just ran into this with our java server app on Linux/RHEL, featuring Excel
report generation that's used once in a blue moon.. External to the Java
process, cron.daily runs tmpwatch to clean up /tmp, taking /tmp/poifiles with
it. 

For a workaround, we'll probably use a pluggable strategy as suggested in the
comments. I've tested on a direct fork of DefaultTempFileCreationStrategy from
POI source, with the only modification being the addition of || !dir.exists()
in createTempFile. This seems to work OK so far, and is essentially Yaniv's
suggestion #2 I guess. #1 seems like a less safe alternative to me, with all
file systems not necessarily behaving the same. And deletions then making
/tmp/poifiles essentially invisible on Linux systems until the java process
terminates and releases its file descriptors.

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


Mime
View raw message