hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo Nicholas Sze (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11734) Ozone: provide a way to validate ContainerCommandRequestProto
Date Tue, 02 May 2017 00:01:04 GMT

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

Tsz Wo Nicholas Sze commented on HDFS-11734:
--------------------------------------------

I suggest we add the API to the ContainerDispatcher interface, i.e.
{code}
public interface ContainerDispatcher {
  /**
   * Check if the given request is valid.
   * @param request - Command request
   * @throws IOException if the request is invalid.
   */
  void validate(ContainerCommandRequestProto request) throws IOException;

  ...
}
{code}

> Ozone: provide a way to validate ContainerCommandRequestProto
> -------------------------------------------------------------
>
>                 Key: HDFS-11734
>                 URL: https://issues.apache.org/jira/browse/HDFS-11734
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Anu Engineer
>
> We need some API to check if a ContainerCommandRequestProto is valid.
> It is useful when the container pipeline is run with Ratis.  Then, the leader could first
checks if a ContainerCommandRequestProto is valid before the request is propagated to the
followers.



--
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


Mime
View raw message