[
https://issues.apache.org/jira/browse/HDDS-11371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17877436#comment-17877436
]
Ethan Rose commented on HDDS-11371:
-----------------------------------
[~SaketaChalamchala] why was this not added to the [existing service info
response|https://github.com/apache/ozone/blob/e3b590e993fcdcb7bb3cc3ae5af2e3202cfc9f08/hadoop-ozone/interface-client/src/main/proto/OmClientProtocol.proto#L1498]?
The client is already making this call to the OM, so the information can be
cached and returned from the {{getServerDefaults}} API, or the same call can be
made again after the timeout. Because that approach extends an existing API it
would not have compatibility concerns.
> getServerDefaults API call fails when OM version is old
> -------------------------------------------------------
>
> Key: HDDS-11371
> URL: https://issues.apache.org/jira/browse/HDDS-11371
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Saketa Chalamchala
> Assignee: Saketa Chalamchala
> Priority: Major
>
> When Client is new and OM version is old. getServerDefaults fails.
> Need to handle this scenario.
> {code:java}
> 2024-08-27 15:55:49,627 [main] INFO retry.RetryInvocationHandler:
> com.google.protobuf.ServiceException:
> org.apache.hadoop.ipc.RemoteException(com.google.protobuf.InvalidProtocolBufferException):
> Message missing required fields: cmdType
> at
> com.google.protobuf.UninitializedMessageException.asInvalidProtocolBufferException(UninitializedMessageException.java:81)
> at
> com.google.protobuf.AbstractParser.checkMessageInitialized(AbstractParser.java:71)
> at
> com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:89)
> at
> com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:95)
> at
> com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
> at
> org.apache.hadoop.ipc.RpcWritable$ProtobufWrapperLegacy.readFrom(RpcWritable.java:170)
> at
> org.apache.hadoop.ipc.RpcWritable$Buffer.getValue(RpcWritable.java:232)
> at
> org.apache.hadoop.ipc.ProtobufRpcEngine$Server.processCall(ProtobufRpcEngine.java:476)
> at
> org.apache.hadoop.ipc.ProtobufRpcEngine2$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine2.java:595)
> at
> org.apache.hadoop.ipc.ProtobufRpcEngine2$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine2.java:573)
> at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1227)
> at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:1094)
> at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:1017)
> at java.base/java.security.AccessController.doPrivileged(Native
> Method)
> at java.base/javax.security.auth.Subject.doAs(Subject.java:423)
> at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1899)
> at org.apache.hadoop.ipc.Server$Handler.run(Server.java:3048)
> , while invoking $Proxy21.submitRequest over nodeId=null,nodeAddress=om:9862
> after 1 failover attempts. Trying to failover after sleeping for 4000ms.
> Current retry count: 1.{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]