Details
Description
With HDFS-13300, the hostName and IpAdress in the DatanodeDetails.proto file made required fiields. These parameters are not set in TestEndPoint which lead these to fail consistently.
TestEndPoint#testRegisterToInvalidEndpoint
com.google.protobuf.UninitializedMessageException: Message missing required fields: ipAddress, hostName at com.google.protobuf.AbstractMessage$Builder.newUninitializedMessageException(AbstractMessage.java:770) at org.apache.hadoop.hdsl.protocol.proto.HdslProtos$DatanodeDetailsProto$Builder.build(HdslProtos.java:1756) at org.apache.hadoop.ozone.container.common.TestEndPoint.registerTaskHelper(TestEndPoint.java:236) at org.apache.hadoop.ozone.container.common.TestEndPoint.testRegisterToInvalidEndpoint(TestEndPoint.java:257)
TestEndPoint#testHeartbeatTaskToInvalidNode
2018-03-29 18:14:54,140 WARN impl.RaftServerProxy: FAILED new RaftServerProxy attempt #1/5: java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: com/codahale/metrics/Timer, sleep 500ms and then retry.
java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: com/codahale/metrics/Timer
at org.apache.ratis.server.storage.RaftLogWorker.<init>(RaftLogWorker.java:104)
at org.apache.ratis.server.storage.SegmentedRaftLog.<init>(SegmentedRaftLog.java:113)
at org.apache.ratis.server.impl.ServerState.initLog(ServerState.java:151)
at org.apache.ratis.server.impl.ServerState.<init>(ServerState.java:101)