Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-11371

getServerDefaults API call fails when OM version is old

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None

    Description

      When Client is new and OM version is old. getServerDefaults fails. 

      Need to handle this scenario.

      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.

      Attachments

        Issue Links

          Activity

            People

              SaketaChalamchala Saketa Chalamchala
              SaketaChalamchala Saketa Chalamchala
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: