[kepler-dev] cache file name

Kevin Ruland kruland at ku.edu
Tue Nov 15 14:10:09 PST 2005


Or changing the DataCacheObject.createFileName() to be a static
synchronized method and have it simply increment a counter to append to
the creation date.

Kevin

Efrat Frank wrote:

>How about concatanating a random number to the timestamp as a temporary 
>solution?
>
>- Efrat
>
>Jing Tao wrote:
>
>  
>
>>Hi devs:
>>
>>Just now Dan and I found a bug for cache file name. Currently after 
>>download a doc, the cache manager will assign it a name. The name come 
>>    
>>
>>from download time (by milli seconds) with file extension ".dat". It 
>  
>
>>worked fine for a while.
>>
>>But dan got a fast machine, then issues came out: it seems when he tried 
>>to open a workflow (there are 10 data resource actors there), two 
>>documents can be download at exactly same time and manager assigned same 
>>cache file name to them. One will overwrite another one. Two different 
>>data source will point to same chache file.
>>
>>I think we should need another mechanism to assign cache file name.
>>
>>Thanks,
>>
>>Jing
>>
>>Jing Tao
>>National Center for Ecological
>>Analysis and Synthesis (NCEAS)
>>735 State St. Suite 204
>>Santa Barbara, CA 93101
>>_______________________________________________
>>Kepler-dev mailing list
>>Kepler-dev at ecoinformatics.org
>>http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>> 
>>
>>    
>>
>_______________________________________________
>Kepler-dev mailing list
>Kepler-dev at ecoinformatics.org
>http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>  
>


More information about the Kepler-dev mailing list