Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-22470

Corrupt Surefire test reports

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 3.0.0-alpha-1, 2.2.0, 2.1.5
    • None
    • test
    • None
    • Upgrade maven-surefire-plugin to 3.0.0-M6. Hope this could solve the partial xml report file problem.

    Description

      Jenkins is not able to read surefire test reports occasionally because the generated XML file is corrupted. In this case Jenkins shows the following error message:

      TEST-org.apache.hadoop.hbase.replication.TestMasterReplication.xml.[failed-to-read]

      https://builds.apache.org/view/H-L/view/HBase/job/HBase%20Nightly/job/branch-2.1/1176/testReport/junit/TEST-org.apache.hadoop.hbase.replication.TestMasterReplication/xml/_failed_to_read_/

      Failed to read test report file /home/jenkins/jenkins-slave/workspace/HBase_Nightly_branch-2.1/output-jdk8-hadoop3/archiver/hbase-server/target/surefire-reports/TEST-org.apache.hadoop.hbase.replication.TestMasterReplication.xml
      org.dom4j.DocumentException: Error on line 86 of document  : XML document structures must start and end within the same entity. Nested exception: XML document structures must start and end within the same entity.

      The specific XML file is not complete, however, the output file for the test contains stdout and stderr output.

      <testcase name="testHFileReplicationForConfiguredTableCfs" classname="org.apache.hadoop.hbase.replication.TestMasterReplication" time="95.334"/>
      <testcase name="testHFileCyclicReplication" classname="org.apache.hadoop.hbase.replication.TestMasterReplication" time="26.5"/>
      <testcase name="testCyclicReplication1" classname="org.apache.hadoop.hbase.replication.TestMasterReplication" time="27.244"/>
      <testcase name="testCyclicReplication2" classname="org.apache.hadoop.hbase.replication.TestMasterReplication" time="46.921"/>
      <testcase name="testCyclicReplication3" classname="org.apache.hadoop.hbase.replication.TestMasterReplication" time="43.147"/>
      <testcase name="testLoopedReplication" classname="org.apache.hadoop.hbase.replication.TestMasterReplication" time="11.119"/>
      <testcase name="testHFileMultiSlaveReplication" classname="org.apache.hadoop.hbase.replication.TestMasterReplication" time="44.022">
      <flakyFailure message="Waited too much time for bulkloaded data replication. Current count=200, expected count=600" type="java.lang.AssertionError">java.lang.AssertionError: Waited too much time for bulkloaded data replication. Current count=200, expected count=600
      at org.apache.hadoop.hbase.replication.TestMasterReplication.wait(TestMasterReplication.java:641)
      at org.apache.hadoop.hbase.replication.TestMasterReplication.loadAndValidateHFileReplication(TestMasterReplication.java:631)
      at org.apache.hadoop.hbase.replication.TestMasterReplication.testHFileMultiSlaveReplication(TestMasterReplication.java:371)
      
      <system-out><![CDATA[Formatting using clusterid: testClusterID
      Formatting using clusterid: testClusterID
      Formatting using clusterid: testClusterID
      ]]></system-out>
      <system-err><![CDATA[

      Attachments

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              psomogyi Peter Somogyi
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: