airpal
airpal copied to clipboard
Cache removal causes file deletion
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.
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!