[
https://issues.apache.org/jira/browse/HDFS-12016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16455122#comment-16455122
]
Hudson commented on HDFS-12016:
-------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #14070 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/14070/])
HDFS-12016. Ozone: SCM: Container metadata are not loaded properly after
(omalley: rev 723da576449d0e0ac2fcbda63826cc5830aa940c)
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/MiniOzoneCluster.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/OzoneContainer.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/container/common/impl/TestContainerPersistence.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/client/TestKeys.java
> Ozone: SCM: Container metadata are not loaded properly after datanode restart
> -----------------------------------------------------------------------------
>
> Key: HDFS-12016
> URL: https://issues.apache.org/jira/browse/HDFS-12016
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ozone, scm
> Affects Versions: HDFS-7240
> Reporter: Nanda kumar
> Assignee: Xiaoyu Yao
> Priority: Major
> Fix For: HDFS-7240
>
> Attachments: HDFS-12016-HDFS-7240.001.patch,
> HDFS-12016-HDFS-7240.002.patch, HDFS-12016-HDFS-7240.003.patch,
> HDFS-12016-HDFS-7240.004.patch, HDFS-12016-HDFS-7240.005.patch
>
>
> Repro steps (Credit to [~nandakumar131])
> 1. create volume/bucket/key
> 2. putkey
> 3. restart DN
> 4. getkey will hit error on container not found like below.
> {code}
> 2017-06-22 15:28:29,950 [Thread-48] INFO (OzoneExceptionMapper.java:39)
> vol-2/bucket-1/key-1 xyao 8727acc4-c1e9-4ba3-a819-4c0e16957079 - Returning
> exception. ex:
> {"httpCode":500,"shortMessage":"internalServerError","resource":"xyao","message":"org.apache.hadoop.scm.container.common.helpers.StorageContainerException:
> Unable to find the container. Name:
> 48cb0c3d-0537-4cff-b716-a7f69ebf50bc","requestID":"8
> {code}
> The root cause is OzoneContainer#OzoneContainer does not load containers from
> repository properly when ozone.container.metadata.dirs are specified.
> The fix is to append the CONTAINER_ROOT_PREFIX when looking for containers on
> the datanode.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]