Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339858 - temp files left on disk on Exception
Summary: temp files left on disk on Exception
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7.0 M7   Edit
Assignee: xiaofeng zhang CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 06:08 EDT by FKiekhaefer CLA
Modified: 2011-04-15 04:31 EDT (History)
2 users (show)

See Also:


Attachments
list of created files (5.36 KB, text/plain)
2011-03-24 09:46 EDT, FKiekhaefer CLA
no flags Details
list of left files (770 bytes, text/plain)
2011-03-24 09:46 EDT, FKiekhaefer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description FKiekhaefer CLA 2011-03-14 06:08:02 EDT
Build Identifier: 

I am using the BIRT runtime 2.6.2 to run a larger report, which results in diskcaching being used. I can see folders with names like "DataEngine_9307751_2" in the temporary directory while running. Usually theses folders get cleaned up, when the report is finished but this seems not to be the case if an Exception occurs. (Actually I got an IOException because I ran out of free tempspace.) Under these circumstances the files are left on disk, they are even neither deleted on platform shutdown nor on JVM shutdown.


However there is some improvement already, as I could not delete the files myself while the JVM is running in 2.6.1


Reproducible: Always
Comment 1 xiaofeng zhang CLA 2011-03-23 22:43:59 EDT
Could you please give the full path of these temp folders? Are there temp files in these temp folders?
Comment 2 FKiekhaefer CLA 2011-03-24 09:46:02 EDT
Created attachment 191820 [details]
list of created files
Comment 3 FKiekhaefer CLA 2011-03-24 09:46:41 EDT
Created attachment 191821 [details]
list of left files

Usually these files get created in the systems default temporary directory. I attached a complete list of created files during a successful report run.

To be able to reproduce the error I created a directory on a small ramdisk, which i set via EngineConfig.setTempDir as temporary directory. The left files after the error are listed in the second attached file. Of course this list would include more files, if I had made the ramdisk larger. (Additionally I’ve just noticed, that the files named “BasicDiskList*” are still created in the systems default directory, but that would be another problem as these are always deleted)
Comment 4 xiaofeng zhang CLA 2011-04-15 04:31:34 EDT
he cause of this issue is that some output streams have not been closed when an IOException occurs. Fix this issue.