simlaudato / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

Temporary Dataset gets deleted after few minutes of creation #914

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a temporary dataset in any data universe.
2. After 2-3 minutes it will be deleted unless you do anything with it.

What is the expected output? What do you see instead?
It should persist for 30 days without being accessed. 

What version of the product are you using? On what operating system?
asterix-server-0.8.7. Ubuntu

Please provide any additional information below.
I figured out the reason for the problem and possible ways to solve it. In the 
class, edu.uci.ics.asterix.metadata.MetadataCache in asterix, there is a 
private final static long TEMP_DATASET_INACTIVE_TIME_THRESHOLD variable on line 
35. Here by default, the thresholdis set to 30 days in miliseconds. But it 
overflows, I mean the long variable. So the temporary dataset gets garbage 
collected way before 30 days. Fixing this should fix the problem.

Original issue reported on code.google.com by Pritom...@gmail.com on 31 Jul 2015 at 5:18

GoogleCodeExporter commented 8 years ago

Original comment by buyingyi@gmail.com on 31 Jul 2015 at 8:11

GoogleCodeExporter commented 8 years ago
Fixed in faaf9b60a72d2becccdef77223600829d51ea39c

Original comment by ima...@uci.edu on 31 Jul 2015 at 9:08