Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3964

Curation queue processing fails if queue files are missing certain index

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Code Review Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.0, 6.1, 6.2, 6.3, 6.4
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Needed

      Description

      A bug was noticed in the curation framework where queues could not be properly processed if a previous job had failed and the files were left in a bad state.

      More specifically, the implementation expects to find files named "queue0", "queue1", "queue2", "queue3" etc. These are iterated over with an incrementing integer until one of the files is not found (or is locked). However, a previous error could leave "queue3" around, preventing it from ever being processed during subsequent runs (unless queue 0, 1, & 2 exist again).

      The solution to this is to list the queues in the directory and process each according to their index, so none are ever skipped.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            kingkrimmson April Herron (Atmire)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: