[ 
https://issues.apache.org/jira/browse/HDDS-8556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17721662#comment-17721662
 ] 

Attila Doroszlai commented on HDDS-8556:
----------------------------------------

This is due to port conflict, same random port is used for both SCM and OM:

{code}
2023-05-10 07:50:16,515 [Listener at 0.0.0.0/33247] INFO  
server.StorageContainerManager (StorageContainerManager.java:start(1491)) - 
ScmBlockLocationProtocol RPC server is listening at /0.0.0.0:43587
...
2023-05-10 07:50:17,655 [Listener at 0.0.0.0/33247] INFO  
ratis.OzoneManagerRatisServer (OzoneManagerRatisServer.java:<init>(163)) - 
Instantiating OM Ratis server with groupID: omServiceIdDefault and peers: 
localhost:43587
...
2023-05-10 07:50:19,225 [Listener at 127.0.0.1/42119] ERROR server.GrpcService 
(ExitUtils.java:terminate(133)) - Terminating with exit status 1: Failed to 
start Grpc server
java.io.IOException: Failed to bind to address 0.0.0.0/0.0.0.0:43587
  at 
org.apache.ratis.thirdparty.io.grpc.netty.NettyServer.start(NettyServer.java:328)
  ...
  at org.apache.hadoop.ozone.om.OzoneManager.start(OzoneManager.java:1612)
  at 
org.apache.hadoop.ozone.MiniOzoneClusterImpl$Builder.build(MiniOzoneClusterImpl.java:611)
  at 
org.apache.hadoop.ozone.MiniOzoneClusterProvider.lambda$createClusters$1(MiniOzoneClusterProvider.java:234)
  at java.lang.Thread.run(Thread.java:750)
Caused by: 
org.apache.ratis.thirdparty.io.netty.channel.unix.Errors$NativeIoException: 
bind(..) failed: Address already in use
{code}

> MiniOzoneClusterProvider intermittently fails to obtain available cluster in 
> time
> ---------------------------------------------------------------------------------
>
>                 Key: HDDS-8556
>                 URL: https://issues.apache.org/jira/browse/HDDS-8556
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: test
>            Reporter: Attila Doroszlai
>            Priority: Major
>         Attachments: 
> org.apache.hadoop.ozone.scm.node.TestDecommissionAndMaintenance-output.txt, 
> org.apache.hadoop.ozone.scm.node.TestDecommissionAndMaintenance.txt
>
>
> {code}
> IOException: Failed to obtain available cluster in time
>   at 
> org.apache.hadoop.ozone.MiniOzoneClusterProvider.provide(MiniOzoneClusterProvider.java:162)
>   at 
> org.apache.hadoop.ozone.scm.node.TestDecommissionAndMaintenance.setUp(TestDecommissionAndMaintenance.java:159)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to