zhengchenyu created HDDS-5633:
---------------------------------

             Summary: Can't allocateBlock if tracing is enable.
                 Key: HDDS-5633
                 URL: https://issues.apache.org/jira/browse/HDDS-5633
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: zhengchenyu


If tracing is enable, when I execute 'ozone fs -put a 
ofs://test1/volume1/bucket1/c', will throw exception. And OM's error log like 
below:
{code}
2021-08-13 12:15:47,456 [IPC Server handler 61 on default port 9862] INFO 
org.apache.hadoop.ipc.Server: IPC Server handler 61 on default port 9862, call 
Call#8 Retry#0 
org.apache.hadoop.ozone.om.protocol.OzoneManagerProtocol.submitRequest from 
10.201.1.11:36224
java.lang.NoSuchMethodException: Method not found: allocateBlock
        at 
org.apache.hadoop.hdds.tracing.TraceAllMethod.invoke(TraceAllMethod.java:65)
        at com.sun.proxy.$Proxy35.allocateBlock(Unknown Source)
        at 
org.apache.hadoop.ozone.om.request.key.OMKeyRequest.allocateBlock(OMKeyRequest.java:130)
        at 
org.apache.hadoop.ozone.om.request.file.OMFileCreateRequest.preExecute(OMFileCreateRequest.java:132)
        at 
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.processRequest(OzoneManagerProtocolServerSideTranslatorPB.java:138)
        at 
org.apache.hadoop.hdds.server.OzoneProtocolMessageDispatcher.processRequest(OzoneProtocolMessageDispatcher.java:87)
        at 
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.submitRequest(OzoneManagerProtocolServerSideTranslatorPB.java:123)
        at 
org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos$OzoneManagerService$2.callBlockingMethod(OzoneManagerProtocolProtos.java)
        at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Server.processCall(ProtobufRpcEngine.java:466)
        at 
org.apache.hadoop.ipc.ProtobufRpcEngine2$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine2.java:574)
        at 
org.apache.hadoop.ipc.ProtobufRpcEngine2$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine2.java:552)
        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1093)
        at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:1035)
        at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:963)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2966)
{code}

The reason is that the method "allocateBlock(long size, int numBlocks, 
ReplicationType type, ReplicationFactor factor, String owner, ExcludeList 
excludeList)" is not implement in 
ScmBlockLocationProtocolClientSideTranslatorPB. So findDelegatedMethod can't 
find this method. 

As this method is deprecated, we should remove this method.





--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to