You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Weiwei Yang (JIRA)" <ji...@apache.org> on 2017/03/27 16:34:42 UTC

[jira] [Commented] (HDFS-11567) Ozone: Support update container

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

Weiwei Yang commented on HDFS-11567:
------------------------------------

Hello [~anu], [~xyao]

Appreciate if you can help to review this patch, I implemented {{UpdateContainer}} call in the dispatcher, it behaves like
# Throws CONTAINER_NOT_FOUND error if the container doesn't exist
# Throws NO_SUCH_ALGORITHM if the digest algorithm not found
# Throws UNSUPPORTED_REQUEST if tries to update a closed container
# Throws CONTAINER_INTERNAL_ERROR if some other error happens during the update
# Updates an existing container with the given container data, if succeed, both container map and data on disk updated
# Backup the container file first, if update fails, restores the container file from the backup

For test
# Added an unit test {{TestContainerPersistence#testUpdateContainer}}
# Added some code in {{TestOzoneContainer#testOzoneContainerViaDataNode}} to verify client server request/response.

> Ozone: Support update container
> -------------------------------
>
>                 Key: HDFS-11567
>                 URL: https://issues.apache.org/jira/browse/HDFS-11567
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>    Affects Versions: HDFS-7240
>            Reporter: Weiwei Yang
>            Assignee: Weiwei Yang
>         Attachments: HDFS-11567-HDFS-7240.001.patch
>
>
> Add support to update a container.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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