Uploaded image for project: 'folio-kafka-wrapper-util'
  1. folio-kafka-wrapper-util
  2. KAFKAWRAP-28

Sporadic failures in KafkaConsumerWrapperTest

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • None
    • None
    • None
    • Folijet Sprint 151
    • 0
    • Folijet
    • Orchid (R1 2023)
    • Implementation coding issue

    Description

      Half of all builds fail with this error:

      [ERROR] shouldResumeConsumerAndPollRecordAfterConsumerWasPaused(org.folio.kafka.KafkaConsumerWrapperTest)  Time elapsed: 125.112 s  <<< ERROR!
      java.util.concurrent.TimeoutException
      

      The tests in KafkaConsumerWrapperTest use the same event type/topic. The Kafka messages get processed asynchronously (eventual consistency) and therefore might be processed when the test method has completed and after the next test method has started resulting in an unexpected event that makes the next test method fail.

      Fix: For each test method use a different event type/topic.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                julianladisch Julian Ladisch
                julianladisch Julian Ladisch
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases