Uploaded image for project: 'Clair'
  1. Clair
  2. CLAIRDEV-181

indexer: File descriptor leak in FetchArena on disk write error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • claircore-1.5.39
    • indexer
    • None
    • Critical

      The error path of the RemoteFetchArena leaves the temporary file descriptors created for layer storage open until the process restarts.

      This leak can leave partially written layer data on disk in some error paths. The major impact prevents the installation from recovering from "out of disk" errors without an Indexer restart. Restarts provide recovery because these files don't have directory entries.

      Fix involves cleaning up opened file descriptors in all error paths.

              hdonnay Henry Donnay
              jvmartin@redhat.com J. Victor Martins
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: