airpal icon indicating copy to clipboard operation
airpal copied to clipboard

Cache removal causes file deletion

Open danielhaviv opened this issue 9 years ago • 1 comments

Whenever a file gets removed from cache due to it's size (maxiumWeight is by default 100MB), it's also deleted from the file system in the removalListener's procedure, which, I believe, is not the desired situation.

I removed the delete call from removalListener in my environment.

danielhaviv avatar Apr 04 '15 16:04 danielhaviv

Sorry for the delay in responding! The original intention was to remove the file so as not to pollute /tmp. Additionally, we generally discourage people from pulling CSVs that large at Airbnb, unless there's a very good reason. However, we should definitely make this configurable and I'll put that on the todo list!

andykram avatar May 12 '15 23:05 andykram