Open sergioferragut opened 2 years ago
We saw this too in our clusters. Also timed out queries are also leaving tmp folders. As a workaround we are cleaning them manually using cron jobs.
This issue has been marked as stale due to 280 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.
I recommend reopening this issue, as I've also encountered such problem, which could lead to the failure of ingestion task if the disk space is fully, and this could be a significant concern that this belongs to the resource leak problem :sweat_smile:
Hi @sergioferragut , have you had a chance to check the ~/var/druid/task/
dir? I find many outdated single_phase_sub_task_xxx
directories with druid-input-entity-xxx.tmp
file, which is worse than tmp folders..
@abhishekagarwal87 Do you have any idea on this one :smile:
What version are you on? I don't see such folders on my local box. Can you post your ingestion spec that you are running?
Hi @abhishekagarwal87 , same as the version that @sergioferragut mentioned in this issue, yes, this indeed is a very low probability event. Now that we are using the MoK mode with the latest version of Druid, this issue no longer affects us :sweat_smile:
Affected Version
Apache Druid 0.22.1
Description
This problem was originally reported here: https://www.druidforum.org/t/temp-folder-size-was-increasing-due-to-that-peons-processing-taking-more-time-how-to-clear-temp-folder-automatically/7139
I was able to reproduce it by running on a small minikube deployment by running the vanilla wikipedia index_parallel ingestion a few times, each with a different target datasource name and confirmed that after the jobs completed the temporary folders for the tasks are not being removed, after 3 runs, the ~/var/tmp folder still contained the three empty folders:
The original report on Druid Forum spoke of thousands of such folders left behind.