[ 
https://issues.apache.org/jira/browse/HDDS-12750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze resolved HDDS-12750.
-------------------------------
    Fix Version/s: 2.0.0
                       (was: 2.1.0)
     Release Note: 
Moved StorageTypeProto from OmClientProtocol.proto and 
ScmServerDatanodeHeartbeatProtocol.proto to hdds.proto.  As a result, the 
java_outer_classname changed from OzoneManagerProtocolProtos and 
StorageContainerDatanodeProtocolProtos to HddsProtos.

This change is 
- Proto wire/binary format: compatible (unchanged)
- Proto text format: compatible (unchanged)
- Java API: incompatible (changed java_outer_classname)
       Resolution: Fixed

> Move StorageTypeProto from ScmServerDatanodeHeartbeatProtocol.proto to 
> hdds.proto
> ---------------------------------------------------------------------------------
>
>                 Key: HDDS-12750
>                 URL: https://issues.apache.org/jira/browse/HDDS-12750
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: common
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>
> TLDR: The change is wire compatible but requires updating protolock.
> In the PR of HDDS-11351, [~XiChen] pointed out that both hdds.proto and 
> ScmServerDatanodeHeartbeatProtocol.proto have the same proto package 
> "hadoop.hdds". So, we could safely move StorageTypeProto from 
> ScmServerDatanodeHeartbeatProtocol.proto to hdds.proto. The only difference 
> is the java_outer_classname. Fortunately, 
> ScmServerDatanodeHeartbeatProtocol.proto is a non-user facing internal 
> protocol and the change is wire compatible. (It is API incompatible but it is 
> fine since the protocol is not a public API.) So there are no compatibility 
> issues.
> A problem is that we need to update the protolock file. We should also rename 
> ScmServerDatanodeHeartbeatProtocol.proto to 
> StorageContainerDatanodeProtocol.proto, i.e. make it consistent with its 
> java_outer_classname.



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