Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369172 - Clearing DataSetCacheObject once report is done
Summary: Clearing DataSetCacheObject once report is done
Status: VERIFIED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.2   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 4.4.1   Edit
Assignee: Zhiqiang Qian CLA
QA Contact: H N CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-20 00:58 EST by Madhav Suram CLA
Modified: 2014-09-17 16:57 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Madhav Suram CLA 2012-01-20 00:58:47 EST
Build Identifier: Version: 2.6.2.r262_v20101008-7m9f7bFS5-OfHSjPqH_1t2 Build id: v20110214-1523

When a report retrieves a huge amount of data, more than 10MB - default value of DataEngine.MEMORY_BUFFER_SIZE, files are created in the temporary system folder to cache the data while report generation is in progress. 

But once the report is generated, these files are not being deleted. They are only deleted when the ReportEngine is shutdown or in our case web-server shutdown/restart.

The DiskDataSetCacheObject class is creating the DataEngine folder to hold the DataSetCacheObject. Because of the complexity of the report, the data.data file created is huge. These files are present till the webserver is rebooted. We have a long running server and hence reboots aren't common and the system temporary folder doesn't get cleaned up. The /tmp space is getting filled up and over the last 6 months, all the space allocated has been used up creating problems on the server.

Is there a way to clean up the files once the report is generated? Or is this as designed? If it is as designed, then would need this to be taken up as an enhancement.


Reproducible: Always

Steps to Reproduce:
1. Run a report which has a lot of data and observe the cached files being created in the system temporary folder.
2.
3.
Comment 1 Madhav Suram CLA 2012-01-20 01:02:43 EST
The issue is also seen on BIRT 2.3.2 as well.
Comment 2 Zhiqiang Qian CLA 2014-07-28 17:39:29 EDT
Mark as fixed. see commit 684b3f85f5d546a42d5d88b10e206527b8ef67dd.
Comment 3 H N CLA 2014-09-17 16:57:36 EDT
After a report document (~10MB) is generated, the cache files (DataSetCacheObject folder) no longer shown in the system temporary folder.

Verified in BIRT 4.4.1 build v20140916-1320.