zhengchenyu opened a new pull request #2551:
URL: https://github.com/apache/ozone/pull/2551


   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:
   
   ```
   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)
   ```
   
   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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to