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

Yiqun Lin commented on HDFS-12830:
----------------------------------

Attach the patch to reset dn number for mini cluster.

> Ozone: TestOzoneRpcClient#testPutKeyRatisThreeNodes fails
> ---------------------------------------------------------
>
>                 Key: HDFS-12830
>                 URL: https://issues.apache.org/jira/browse/HDFS-12830
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>    Affects Versions: HDFS-7240
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>         Attachments: HDFS-12830-HDFS-7240.001.patch
>
>
> The test {{TestOzoneRpcClient#testPutKeyRatisThreeNodes}} always fails in the 
> feature branch. Stack trace:
> {noformat}
> 2017-11-16 11:44:28,512 [IPC Server handler 7 on 43551] ERROR 
> ratis.RatisManagerImpl (RatisManagerImpl.java:getPipeline(130))      - Get 
> pipeline call failed. We are not able to find free nodes or operational 
> pipeline.
> 2017-11-16 11:44:28,513 [IPC Server handler 7 on 43551] WARN  ipc.Server 
> (Server.java:logException(2721)) - IPC Server handler 7 on 43551, call 
> Call#679 Retry#0 
> org.apache.hadoop.ozone.protocol.ScmBlockLocationProtocol.allocateScmBlock 
> from 172.17.0.2:42671
> java.lang.NullPointerException
>       at 
> org.apache.hadoop.scm.container.common.helpers.ContainerInfo.getProtobuf(ContainerInfo.java:132)
>       at 
> org.apache.hadoop.ozone.scm.container.ContainerMapping.allocateContainer(ContainerMapping.java:221)
>       at 
> org.apache.hadoop.ozone.scm.block.BlockManagerImpl.preAllocateContainers(BlockManagerImpl.java:190)
>       at 
> org.apache.hadoop.ozone.scm.block.BlockManagerImpl.allocateBlock(BlockManagerImpl.java:292)
>       at 
> org.apache.hadoop.ozone.scm.StorageContainerManager.allocateBlock(StorageContainerManager.java:1047)
>       at 
> org.apache.hadoop.ozone.protocolPB.ScmBlockLocationProtocolServerSideTranslatorPB.allocateScmBlock(ScmBlockLocationProtocolServerSideTranslatorPB.java:107)
>       at 
> {noformat}
> The warn log {{Get pipeline call failed. We are not able to find free nodes 
> or operational pipeline.}} is the failed reason. This is broken by the change 
> in HDFS-12756. It missed resetting datanode num.
> {code}
> -    cluster = new MiniOzoneCluster.Builder(conf).numDataNodes(5)
> +    cluster = new MiniOzoneClassicCluster.Builder(conf)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to