Project: usergrid
Issue USERGRID-740: Temp files from asset upload not removed, causing the file system to use all inodes
After running Usergrid 2.0 for over 1 month on a tomcat, we have saturated the inodes of the disk on the tomcat machine. Our temporary files for uploads are not getting removed. Files of this structure appear in {code} ls -lrt /var/cache/tomcat7/temp -rw-r--r-- 1 tomcat tomcat 0 Jun 9 23:23 MIME377627531473294092.tmp -rw-r--r-- 1 tomcat tomcat 0 Jun 9 23:23 MIME2634951521985073318.tmp -rw-r--r-- 1 tomcat tomcat 0 Jun 9 23:23 MIME1066361445384372180.tmp -rw-r--r-- 1 tomcat tomcat 0 Jun 9 23:23 MIME3554741621747313255.tmp -rw-r--r-- 1 tomcat tomcat 0 Jun 9 23:23 MIME1805372544199883785.tmp -rw-r--r-- 1 tomcat tomcat 0 Jun 9 23:23 MIME414525331725926400.tmp {code} We need to ensure that all temporary files are removed. Note that all the files remaining are 0 bytes. This seems to be caused by an edge case when a 0 byte file is uploaded, or possibly the upload is failing.
Story points: 5