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

Tsz-wo Sze commented on HDDS-16192:
-----------------------------------

Comparing with ClientNamenodeProtocol in HDFS, ClientNamenodeProtocol lists out 
all the methods in the gRPC service but Ozone only has a single 
submitRequest(..) method.   So, it does look like 
StorageContainerLocationProtocol is not a real protocol.

- Ozone - StorageContainerLocationProtocolService
{code}
service StorageContainerLocationProtocolService {
  rpc submitRequest (ScmContainerLocationRequest) returns 
(ScmContainerLocationResponse);
}
{code}

- HDFS - ClientNamenodeProtocol
{code}
service ClientNamenodeProtocol {
  rpc getBlockLocations(GetBlockLocationsRequestProto)
      returns(GetBlockLocationsResponseProto);
  rpc getServerDefaults(GetServerDefaultsRequestProto)
      returns(GetServerDefaultsResponseProto);
  rpc create(CreateRequestProto)returns(CreateResponseProto);
  rpc append(AppendRequestProto) returns(AppendResponseProto);
  rpc setReplication(SetReplicationRequestProto)
      returns(SetReplicationResponseProto);

  ...
}
{code}

> Refactor  o.a.h.hdds.scm.protocol
> ---------------------------------
>
>                 Key: HDDS-16192
>                 URL: https://issues.apache.org/jira/browse/HDDS-16192
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: SCM
>            Reporter: Tsz-wo Sze
>            Priority: Major
>
> ||interface||protocol (gRPC service)||
> |StorageContainerLocationProtocol|StorageContainerLocationProtocolService|
> |ScmBlockLocationProtocol|ScmBlockLocationProtocolService|
> The above interfaces in package org.apache.hadoop.hdds.scm.protocol are just 
> internal interfaces but not really protocols, in the sense that changing the 
> signatures of the methods does NOT change the underlying protocols, where the 
> underlying protocols are defined in the corresponding gRPC services.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to