Uploaded image for project: 'mod-pubsub'
  1. mod-pubsub
  2. MODPUBSUB-158

Some events are published but not delivered

    XMLWordPrintable

Details

    • EPAM-Veg Sprint 111, EPAM-Veg Sprint 112
    • 3
    • Vega
    • R1 2021 Bug Fix

    Description

      Affected environment - Iris bugfest.

      Events of the type FEE_FINE_BALANCE_CHANGED are published by mod-feesfines but not received by mod-patron-blocks.

      Publisher's logs (mod-feesfine):

      2021-03-30T12:54:45.441Z 12:54:45 [] [] [] [] INFO EventPublisher Event FEE_FINE_BALANCE_CHANGED published successfully: 68144256-f734-4d54-81ce-0e36e946d12b

      PubSub logs:

      2021-03-30T14:22:24.100Z 14:22:24 [] [] [] [] INFO aConsumerServiceImpl Received FEE_FINE_BALANCE_CHANGED event with id 'aea4346c-8da3-4af7-ad88-f5cadd4916dc'
      2021-03-30T14:22:24.101Z 14:22:24 [] [] [] [] INFO ublishingServiceImpl Sent FEE_FINE_BALANCE_CHANGED event with id 'aea4346c-8da3-4af7-ad88-f5cadd4916dc' to topic ibf.pub-sub.fs09000000.FEE_FINE_BALANCE_CHANGED.mod-pubsub-2.0.1
      2021-03-30T14:22:24.101Z 14:22:24 [] [] [] [] INFO LogUtil org.folio.rest.RestVerticle start invoking postPubsubPublish
      2021-03-30T14:22:24.102Z 14:22:24 [] [] [] [] INFO LogUtil 127.0.0.1:51358 POST /pubsub/publish null HTTP_1_1 204 0 120 tid=fs09000000 No Content 
      2021-03-30T14:22:24.107Z 14:22:24 [] [] [] [] INFO RestUtil Sending POST for http://pvt.lb.ibf.folio-eis.us-east-1:9130/authn/login
      2021-03-30T14:22:24.115Z 14:22:24 [] [] [] [] INFO RestUtil Response received with statusCode 404
      2021-03-30T14:22:24.115Z 14:22:24 [] [] [] [] ERROR SecurityManagerImpl pub-sub user was not logged in, received status 404

      PubSub knows that mod-patron-blocks is a subscriber:

      {
       "messagingModules": [
       {
       "id": "2e2cb072-7554-4ed1-b697-4a78be9044ee",
       "eventType": "FEE_FINE_BALANCE_CHANGED",
       "moduleId": "mod-patron-blocks-1.2.0",
       "tenantId": "fs09000000",
       "moduleRole": "SUBSCRIBER",
       "activated": true,
       "subscriberCallback": "/automated-patron-blocks/handlers/fee-fine-balance-changed"
       }
       ],
       "totalRecords": 1
      }

      But mod-patron-block doesn't receive this message. In PubSub history it's marked as "PUBLISHED":

      {
       "id": "4186733e-d54e-4d6b-a4a6-d6862d4de2bd",
       "eventId": "68144256-f734-4d54-81ce-0e36e946d12b",
       "eventType": "FEE_FINE_BALANCE_CHANGED",
       "correlationId": "",
       "tenantId": "fs09000000",
       "createdBy": "",
       "publishedBy": "mod-feesfines-16.0.0",
       "auditDate": "2021-03-30T12:54:45.438+00:00",
       "state": "PUBLISHED",
       "errorMessage": ""
       }

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                OleksandrVidinieiev Oleksandr Vidinieiev
                oleksandrkurash Alexander Kurash
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases