Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31959

Delete temp files created during command-line conversions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2021
    • Fix Version/s: 2023.4, 2021.46
    • Component/s: Convert
    • Release Notes Summary:
      Command line conversion temporary files are now deleted correctly.
    • Backlog priority:
      700
    • Upgrade notes:
      Hide

      Added:

      • Framework#trackDirectory(File file, Object marker)
      • public class DirectoryEvent extends FileEvent
      • FileEvent#onDirectory(Object source, File aFile, Object aMarker)
      • FileEventHandler#onDirectory(File file, Object marker)
      • FileEventTracker#getDeleteStrategy()
      • FileEventTracker#getForceDeleteStrategy()
      • TestFileEventTracker
      Show
      Added: Framework#trackDirectory(File file, Object marker) public class DirectoryEvent extends FileEvent FileEvent#onDirectory(Object source, File aFile, Object aMarker) FileEventHandler#onDirectory(File file, Object marker) FileEventTracker#getDeleteStrategy() FileEventTracker#getForceDeleteStrategy() TestFileEventTracker
    • Sprint:
      nxplatform #99, nxplatform #100
    • Story Points:
      5

      Description

      I have identified several scenarios which lead to temp files not being deleted, even after several hours and forcing full GC

      Scenario 1

      1. Upload a PDF file
      2. Nuxeo triggers the pdftotext conversion because of the FulltextExtractor
      3. The file $TMP_DIR/clc-pdftotext-xxx/zzzz.tmp is never deleted

      Scenario 2

      • Upload a .docx file
      • On the Summary view, Nuxeo convert the file to PDF
      • The file $TMP_DIR/clc-soffice-xxx/nxblob-zzz.pdf is never deleted

       

      Note that another scenario immediately deletes the temp file : the thumbnail computation for a .docx file call the "soffice" converter but at the end of the work, the folder $TMP_DIR/clc-soffice-xxx/ does not contain the nxblob-zzz.png file

       

      Expected behavior: all temp files should be deleted (ideally with the mechanism similar to the thumbnail ?)

       

      PS: the code does a Framework#trackFile on these files, but maybe the pointeor is never released ...

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: