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

Fix CSVExport Bulk action never ending

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 10.3-SNAPSHOT
    • Fix Version/s: 10.3
    • Component/s: Core

      Description

      When issuing such curl request:

      curl 'http://localhost:8080/nuxeo/api/v1/search/pp/default_search/bulk/csvExport' -X POST -u Administrator:Administrator -H 'Content-Type: application/json' --compressed
      

      to export the default search result set in CSV, I got the following response:

      {
          "action": "csvExport", 
          "commandId": "cb501c1d-309c-4cd1-90b6-0a6b8055ee1d", 
          "completed": null, 
          "entity-type": "bulkStatus", 
          "processed": 0, 
          "scrollEnd": null, 
          "scrollStart": null, 
          "state": "SCHEDULED", 
          "submitted": "2018-10-31T15:14:31.755Z", 
          "total": 0, 
          "username": "Administrator"
      }
      

      Then I keep GET on http://localhost:8080/nuxeo/api/v1/bulk/cb501c1d-309c-4cd1-90b6-0a6b8055ee1d
      and the answer is:

      {
          "action": "csvExport", 
          "commandId": "cb501c1d-309c-4cd1-90b6-0a6b8055ee1d", 
          "completed": null, 
          "entity-type": "bulkStatus", 
          "processed": 0, 
          "scrollEnd": "2018-10-31T15:14:31.813Z", 
          "scrollStart": "2018-10-31T15:14:31.811Z", 
          "state": "RUNNING", 
          "submitted": "2018-10-31T15:14:31.755Z", 
          "total": 8, 
          "username": "Administrator"
      }
      

      which seems normal but the command stays in RUNNING state forever :/

      EDIT the above occurs with a bare nuxeo with h2/no redis, restarting the server with a nxserver/data/stream deletion solves the issue

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 35 minutes
                  35m

                    PagerDuty

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