Uploaded image for project: 'mod-source-record-manager'
  1. mod-source-record-manager
  2. MODSOURMAN-933

Prevent jobs from hanging when cancelled job is deleted before BG processing is finished

    XMLWordPrintable

Details

    • Folijet Sprint 159, Folijet Sprint 160
    • 0.5
    • Folijet
    • Orchid (R1 2023)

    Description

      The DI job that was deleted before all of its packets were processed stops processing all the next jobs.
      Reason: When the DI gets the status "is_deleted=true" the job is excluded from the system requests.

      JobExecutionDBConstants:
      public static final String GET_BY_ID_SQL = "SELECT * FROM %s WHERE id = $1 AND is_deleted = false";
      

      SRM ERROR message:

      WARN rcChunksKafkaHandler handle:: RawRecordsDto processing has failed with errors chunkId: 32a091b7-77f8-460b-a709-5991174acc6a chunkNumber: 7 - org.folio.rest.jaxrs.model.RecordsMetadata@1a453896 for jobExecutionId: a9bf1cdf-23d0-4d63-98c3-e188b46c6c24
      javax.ws.rs.NotFoundException: Couldn't find JobExecution with id a9bf1cdf-23d0-4d63-98c3-e188b46c6c24
      at org.folio.services.AbstractChunkProcessingService.lambda$processChunk$3(AbstractChunkProcessingService.java:74) ~[mod-source-record-manager-server-fat.jar:?]
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                afedasiuk Aliaksandr Fedasiuk
                afedasiuk Aliaksandr Fedasiuk
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases