Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-353

Drive doesn't work against a Nuxeo cluster

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0522
    • Fix Version/s: 2.0.1028
    • Component/s: Remote client
    • Sprint:
      drive-7.10-2
    • Story Points:
      2

      Description

      Problem is that file upload uses the Blob Upload for Batch Processing mechanism which happens in 2 steps:

      • Upload: call to /site/automation/batch/upload
      • Execute: call to /site/automation/batch/execute

      See https://github.com/nuxeo/nuxeo/blob/master/nuxeo-features/nuxeo-automation/nuxeo-automation-server/src/main/java/org/nuxeo/ecm/automation/server/jaxrs/batch/BatchResource.java about the batch JAX-RS resource.

      Let's say the Nuxeo instance is configured with a cluster of 2 nodes A and B. If the upload request hits A and the execute request hits B then we'll have the following error:

      2015-05-05 16:58:12,540 ERROR [ajp-bio-0.0.0.0-8009-exec-2] [org.nuxeo.ecm.automation.server.jaxrs.batch.BatchManagerComponent] Unable to find batch with id 1430837891.25_348367745
      2015-05-05 16:58:12,541 ERROR [ajp-bio-0.0.0.0-8009-exec-2] [org.nuxeo.ecm.automation.server.jaxrs.batch.BatchManagerComponent] Unable to find batch associated with id '1430837891.25_348367745' or file associated with index '0'
      2015-05-05 16:58:12,541 ERROR [ajp-bio-0.0.0.0-8009-exec-2] [org.nuxeo.ecm.automation.server.jaxrs.batch.BatchResource] Error while executing automation batch 
      org.nuxeo.ecm.core.api.ClientException: Unable to find batch associated with id '1430837891.25_348367745' or file associated with index '0'
      	at org.nuxeo.ecm.automation.server.jaxrs.batch.BatchManagerComponent.execute(BatchManagerComponent.java:158)
      	at org.nuxeo.ecm.automation.server.jaxrs.batch.BatchResource.exec(BatchResource.java:206)
      

      This is from what SUPNXP-13263 was suffering.

      Possible solutions:

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ataillefer Antoine Taillefer
                Reporter:
                ataillefer Antoine Taillefer
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: