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

Construct JournalRecord for DI_ERRORs even if there is no Record data

    XMLWordPrintable

Details

    • Folijet Sprint 142
    • 3
    • Folijet
    • Morning Glory (R2 2022)

    Description

      SRM can't handle DI_ERROR message from mod-inventory:

      18:35:09.793 [vert.x-worker-thread-0] ERROR tJournalKafkaHandler [8881967eqId] Error during processing journal event
      org.folio.services.journal.JournalRecordMapperException: Failed to handle DI_ERROR event, because event payload context does not contain INSTANCE and/or MARC_BIBLIOGRAPHIC data
      	at org.folio.services.journal.JournalUtil.buildJournalRecordByEvent(JournalUtil.java:48) ~[mod-source-record-manager-server-fat.jar:?]
      	at org.folio.verticle.consumers.util.MarcImportEventsHandler.handle(MarcImportEventsHandler.java:98) ~[mod-source-record-manager-server-fat.jar:?]
      

      mod-inventory, recordId = 3424c5f6-d04f-46df-883a-6daea22ae1a4:

      18:35:09 [] [] [] [] INFO  taImportKafkaHandler Data import event payload has been received with event type: DI_SRS_MARC_BIB_RECORD_CREATED, recordId: 3424c5f6-d04f-46df-883a-6daea22ae1a4 by jobExecution: bcc3699c-3ab6-4c99-85f4-766a0dedaac0 and chunkId: 544172e1-a395-4f86-a817-34e415327743
      18:35:09 [] [] [] [] INFO  anceIdStorageService Saving RecordToInstance relationship: RecordToEntity(table=records_instances, recordId=3424c5f6-d04f-46df-883a-6daea22ae1a4, entityId=9c7b32f2-a895-4d5a-970e-bb5751ae7af3)
      18:35:09 [] [] [] [] INFO  tityIdStorageDaoImpl Trying to save entity to records_instances with recordId = 3424c5f6-d04f-46df-883a-6daea22ae1a4 and entityId = 9c7b32f2-a895-4d5a-970e-bb5751ae7af3
      18:35:09 [] [] [] [] ERROR InstanceEventHandler Error creating inventory Instance by jobExecutionId: 'bcc3699c-3ab6-4c99-85f4-766a0dedaac0' and recordId: '3424c5f6-d04f-46df-883a-6daea22ae1a4' and chunkId: '544172e1-a395-4f86-a817-34e415327743' 
      io.vertx.core.impl.NoStackTraceThrowable: MappingParameters snapshot was not found by jobExecutionId: 'bcc3699c-3ab6-4c99-85f4-766a0dedaac0'. RecordId: '3424c5f6-d04f-46df-883a-6daea22ae1a4', chunkId: '544172e1-a395-4f86-a817-34e415327743' 
      18:35:09 [] [] [] [] ERROR EventProcessorImpl   An Exception occurred Index -1 out of bounds for length 0
      18:35:09 [] [] [] [] INFO  KafkaEventPublisher  Event with type: 'DI_ERROR' by jobExecutionId: 'bcc3699c-3ab6-4c99-85f4-766a0dedaac0' and recordId: '3424c5f6-d04f-46df-883a-6daea22ae1a4' with chunkId: '544172e1-a395-4f86-a817-34e415327743' was sent to the topic 'perf-eks-folijet.Default.fs09000000.DI_ERROR' 
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                VRohach Volodymyr Rohach
                afedasiuk Aliaksandr Fedasiuk
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases