whbing commented on PR #5288:
URL: https://github.com/apache/ozone/pull/5288#issuecomment-2049385446

   > > OM is not yet compatible with ratis 3.1.0. such as 
[RATIS-2011](https://issues.apache.org/jira/browse/RATIS-2011). ...
   > 
   > @whbing , [RATIS-2011](https://issues.apache.org/jira/browse/RATIS-2011) 
was to fix a memory leak issue (otherwise, some TransactionContext objects will 
not be removed from the map.) Why it courses the failure?
   
   1. OM build failed with ratis 3.1.0 because it calls 
`RatisHelper.attemptUntilTrue` which removed in RATIS-2011.
   2. OM also start failed with the new `ratis-common-.jar`, with err:
   ```java
   
   java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.ratis.protocol.RaftClientRequest
           at 
org.apache.hadoop.ozone.om.ratis.OzoneManagerRatisServer.createRaftRequestImpl(OzoneManagerRatisServer.java:458)
           at 
org.apache.hadoop.ozone.om.ratis.OzoneManagerRatisServer.lambda$3(OzoneManagerRatisServer.java:296)
           at 
org.apache.hadoop.util.MetricUtil.captureLatencyNs(MetricUtil.java:45)
           at 
org.apache.hadoop.ozone.om.ratis.OzoneManagerRatisServer.createRaftRequest(OzoneManagerRatisServer.java:294)
           at 
org.apache.hadoop.ozone.om.ratis.OzoneManagerRatisServer.submitRequest(OzoneManagerRatisServer.java:259)
           at 
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.submitReadRequestToRatis(OzoneManagerProtocolServerSideTranslatorPB.java:264)
           at 
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.submitReadRequestToOM(OzoneManagerProtocolServerSideTranslatorPB.java:271)
           at 
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.internalProcessRequest(OzoneManagerProtocolServerSideTranslatorPB.java:211)
           at 
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.processRequest(OzoneManagerProtocolServerSideTranslatorPB.java:171)
           at 
org.apache.hadoop.hdds.server.OzoneProtocolMessageDispatcher.processRequest(OzoneProtocolMessageDispatcher.java:89)
           at 
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.submitRequest(OzoneManagerProtocolServerSideTranslatorPB.java:162)
           at 
org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos$OzoneManagerService$2.callBlockingMethod(OzoneManagerProtocolProtos.java)
           at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Server.processCall(ProtobufRpcEngine.java:484)
           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:1098)
           at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:1021)
           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:1953)
           at org.apache.hadoop.ipc.Server$Handler.run(Server.java:3060)
   ``` 
   I've done some tests just based on ratis-common-3.0.1.jar and updated in the 
above doc.


-- 
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