Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13368

Ozone:TestEndPoint tests are failing consistently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • HDFS-7240
    • HDFS-7240
    • ozone
    • None
    • Reviewed

    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)

      Attachments

        1. HDFS-13368-HDFS-7240.001.patch
          2 kB
          Shashikant Banerjee
        2. HDFS-13368-HDFS-7240.000.patch
          2 kB
          Shashikant Banerjee

        Activity

          People

            shashikant Shashikant Banerjee
            shashikant Shashikant Banerjee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: