Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3688

Introduce retry mechanism when starting embedded servlet containers in unit tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.2.1
    • 5.3.0
    • None
    • None

    Description

      In the unit tests which uses the embedded servlet container an intermittent issue can occur without this change, because those tests start the container on a specific port, which is available at the start of the unit tests. However, in some corner cases, it can happen that the port is being available at the start of the test, but some process occupies that port meanwhile, leading to a `java.net.BindException: Address already in use` exception during the unit test's execution.

      The goal of this ticket is resolve this by introducing a retry mechanism when starting the embedded servlet container.

      Attachments

        1. OOZIE-3688-001.patch
          3 kB
          János Makai

        Activity

          People

            jmakai János Makai
            jmakai János Makai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: