Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339858

Summary: temp files left on disk on Exception
Product: z_Archived Reporter: FKiekhaefer <florian.kiekhaefer>
Component: BIRTAssignee: xiaofeng zhang <xiaofeng.zhang>
Status: RESOLVED FIXED QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: bluesoldier, xiaofeng.zhang
Version: unspecified   
Target Milestone: 3.7.0 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
list of created files
none
list of left files none

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.