Problem/Motivation
Hi everyone!
Since this fix was committed, VDE temp files are not deleted during garbage collection.
The watchdog has entries noting that the temporary file is still used by VDE module.
Looking at the code, it seems that the temp file is added to the file_usage table for better handling, but it never gets deleted from that table (when all OK).
I'm not sure where the best place is for correcting this, maybe in views_data_export_garbage_collect() ?
Just before file_delete is called, we could call file_usage_delete() for cleaning the usage entry, hence releasing the file for delete.
Any comments ?
Thank you all for your great work on this module !
Proposed resolution
@tvasilia So the call to file_delete in views_data_export_garbage_collect does actually pass in the force parameter, so that we don't need to clean up the usage before calling file delete.
However, because of our huge lifetime on the exports, the garbage collection doesn't happen for quite some time.
I think we could reduce this, and then your issues would go away I think.
Remaining tasks
Implement the change to the lifetime.
User interface changes
None
API changes
None
Data model changes
None
Comments
Comment #2
steinmb CreditAttribution: steinmb as a volunteer commentedAlso notice that they are not getting cleaned up.
Comment #3
steinmb CreditAttribution: steinmb as a volunteer commentedLooking at views_data_export_garbage_collect() and I think it is not a bug. I choose a week as default if not values is set to variables. In my system drush vget views_data_export_gc_expires came back empty.
Tested views_data_export_garbage_collect() by running:
So only one left. I think it is good. Just need to configure it. Time to break out hook_update_N().