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

Fix batch upload in chunk cleanup whn in cluster without affinity

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2021.0
    • Fix Version/s: None
    • Component/s: Core

      Description

      The batch upload in chunk creates a temporary file when building the final blob.
      There is logic to keep the tmp file path in the transient store, for later deletion, but the cleanup of this tmp file cannot work in cluster without node affinity:
      https://github.com/nuxeo/nuxeo-lts/blob/2021/modules/platform/nuxeo-automation/nuxeo-automation-server/src/main/java/org/nuxeo/ecm/automation/server/jaxrs/batch/BatchFileEntry.java#L229
      https://github.com/nuxeo/nuxeo-lts/blob/2021/modules/platform/nuxeo-automation/nuxeo-automation-server/src/main/java/org/nuxeo/ecm/automation/server/jaxrs/batch/BatchFileEntry.java#L294

      It would be better to store the final blob in the transient store too to let it handle the cleanup (and remove the tmp file right after build).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.