Bug 206861 The data set cache should handle IOException and the cancel request from customer
The data set data will be saved into disk file in the first query and it will be loaded in the later time. The processing of write disk file may be cancelled by customer request or IOException. Using the data from the bad file will cause error.
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/binding/DataSetCacheTest.java
this.appContextMap.put( DataEngine.DATA_SET_CACHE_ROW_LIMIT, new Integer(4) );
		this.testUseCache1();
	}
	
	/**
	 * Test acquire saved cache result meta 
	 *
	 */
	public void testUseCachedMeta1() throws BirtException
	{
		this.appContextMap.put( DataEngine.DATA_SET_CACHE_ROW_LIMIT, new Integer( 1 ) );
		this.genCache();
		myDataEngine = newDataEngine( );
		IResultMetaData meta = myDataEngine.getCachedDataSetMetaData(dataSource, dataSet);
		assertTrue( meta!= null );
		assertTrue( meta.getColumnCount() == 6 );
	}
	
	/**
	 * Test acqurire inexist save cache result meta 
	 *
	 */
	public void testUseCachedMeta2() throws BirtException
	{
		this.appContextMap.put( DataEngine.DATA_SET_CACHE_ROW_LIMIT, new Integer( 0 ) );
		this.genCache();
		myDataEngine = newDataEngine( );
		IResultMetaData meta = myDataEngine.getCachedDataSetMetaData(dataSource, dataSet);
		assertTrue( meta == null );