[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to