You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by Denes Bodo <bo...@gmail.com> on 2021/08/09 06:27:04 UTC

Review Request 73507: TestIntegrationGitActionExecutor can fail due to "Address already in use"

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73507/
-----------------------------------------------------------

Review request for oozie.


Bugs: OOZIE-3633
    https://issues.apache.org/jira/browse/OOZIE-3633


Repository: oozie-git


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.


Diffs
-----

  sharelib/git/src/test/java/org/apache/oozie/action/hadoop/GitServer.java 8398e5fef 
  sharelib/git/src/test/java/org/apache/oozie/action/hadoop/TestIntegrationGitActionExecutor.java 20368dabb 


Diff: https://reviews.apache.org/r/73507/diff/1/


Testing
-------


Thanks,

Denes Bodo


Re: Review Request 73507: TestIntegrationGitActionExecutor can fail due to "Address already in use"

Posted by Andras Salamon <an...@melda.info>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73507/#review223323
-----------------------------------------------------------


Ship it!




Ship It!

- Andras Salamon


On Aug. 9, 2021, 6:27 a.m., Denes Bodo wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73507/
> -----------------------------------------------------------
> 
> (Updated Aug. 9, 2021, 6:27 a.m.)
> 
> 
> Review request for oozie.
> 
> 
> Bugs: OOZIE-3633
>     https://issues.apache.org/jira/browse/OOZIE-3633
> 
> 
> Repository: oozie-git
> 
> 
> 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.
> 
> 
> Diffs
> -----
> 
>   sharelib/git/src/test/java/org/apache/oozie/action/hadoop/GitServer.java 8398e5fef 
>   sharelib/git/src/test/java/org/apache/oozie/action/hadoop/TestIntegrationGitActionExecutor.java 20368dabb 
> 
> 
> Diff: https://reviews.apache.org/r/73507/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Denes Bodo
> 
>