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

TestIntegrationGitActionExecutor can fail due to "Address already in use"

    XMLWordPrintableJSON

Details

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

    Description

      When executed unit tests I ran into "Address already in use" issue when TestIntegrationGitActionExecutor ran:

      java.net.BindException: Address already in use (Bind failed)
      	at java.net.PlainSocketImpl.socketBind(Native Method)
      	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
      	at java.net.ServerSocket.bind(ServerSocket.java:375)
      	at org.eclipse.jgit.transport.Daemon.start(Daemon.java:373)
      	at org.apache.oozie.action.hadoop.GitServer.start(GitServer.java:76)
      ... 

      The root cause may be the approach how the test case checks and uses the port.

      Attachments

        1. OOZIE-3633-001.patch
          4 kB
          Dénes Bodó

        Activity

          People

            dionusos Dénes Bodó
            dionusos Dénes Bodó
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: