[
https://issues.apache.org/jira/browse/HDDS-15281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sarveksha Yeshavantha Raju resolved HDDS-15281.
-----------------------------------------------
Fix Version/s: 2.2.0
Resolution: Fixed
> Missing LifeCycleState codec in ScmCodecFactory
> -----------------------------------------------
>
> Key: HDDS-15281
> URL: https://issues.apache.org/jira/browse/HDDS-15281
> Project: Apache Ozone
> Issue Type: Bug
> Affects Versions: 2.2.0
> Reporter: Sarveksha Yeshavantha Raju
> Assignee: Sarveksha Yeshavantha Raju
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.2.0
>
>
> {{ContainerStateManager#transitionDeletingOrDeletedToTargetState}} is
> annotated with {{@Replicate}} and takes
> {{org.apache.hadoop.hdds.protocol.proto.HddsProtos.LifeCycleState}} as a
> parameter. After HDDS-14748 (non-reflection {{ScmGeneratedMessageCodec}} /
> explicit codec registration for Ratis serialization), callers need a
> {{ScmCodec}} registered for every protobuf-derived type used in replicated
> method arguments—including protobuf enums handled via {{ScmEnumCodec}}.
> {{LifeCycleState}} was not registered in {{ScmCodecFactory}}, while related
> enums such as {{{}LifeCycleEvent{}}}, {{{}PipelineState{}}}, and {{NodeType}}
> already were. That can cause {{InvalidProtocolBufferException}} (“Codec not
> found …”) when the leader submits or followers apply this Ratis transaction.
> cc: [~sumitagrawl]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]