Announcement

Collapse
No announcement yet.

Can't pass the unit test after complete the building of community edition

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't pass the unit test after complete the building of community edition

    Hi there,

    I have tried to build voltdb on centOS 7(x86-64) in a VM(vmware fusion) from the latest version that check out from github.com

    The building was completed without problem(using "ant") and failed during unit tests("ant check").

    The error message are as below:

    [exec] [junitreport] Processing /root/voltdb/obj/release/testoutput/TESTS-TestSuites.xml to /root/voltdb/obj/release/testoutput/report/junit-noframes.html
    [exec] [junitreport] Loading stylesheet jar:file:/usr/share/java/ant/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
    [exec] [junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser : Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
    [exec] [junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser : Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
    [exec] [junitreport] Transform time: 1908ms
    [exec] [junitreport] Processing /root/voltdb/obj/release/testoutput/TESTS-TestSuites.xml to /root/voltdb/obj/release/testoutput/junit-noframes.html
    [exec] [junitreport] Loading stylesheet /root/voltdb/tools/junit-noframes.xsl
    [exec] [junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser : Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
    [exec] [junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser : Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
    [exec] [junitreport] Transform time: 427ms
    [exec] [exec] See obj/release/testoutput/report/junit-noframes.html for details.
    [exec] [exec] Suite TestRepairLog reports 1 failure(s).
    [exec] [exec] Testcase testPerformance junit.framework.AssertionFailedError
    [exec] [exec] Suite TestQueryTimeout reports 1 failure(s).
    [exec] [exec] Testcase testIndividualProcTimeout-localCluster-2-3-JNI junit.framework.AssertionFailedError
    [exec] [exec] Suite TestPersistentBinaryDeque reports 1 failure(s).
    [exec] [exec] Testcase testInvalidDirectory junit.framework.AssertionFailedError
    [exec] [exec]
    [exec]
    [exec] BUILD FAILED
    [exec] /root/voltdb/build.xml:1757: The following error occurred while executing this line:
    [exec] /root/voltdb/build.xml:1951: JUnit had failures
    [exec]
    [exec] Total time: 125 minutes 16 seconds

    BUILD FAILED
    /root/voltdb/build.xml:558: exec returned: 1

    Total time: 125 minutes 58 seconds

    Appreciate if anyone can give a clue.

    Thanks,

  • #2
    Hi,

    I'm not sure if this is at all related, but check that you are building using JDK 7, not JDK 8. We support running VoltDB with either JDK, but builds can only be done using JDK 7 for the time being.

    Are you building from a recent clone or pull from the master branch? I would recommend that you build from a released version, so you know you have a version that has been tested.

    Regards,
    Ben

    Comment


    • #3
      Thanks Ben,

      I am using CentOS 7 and openjdk 1.7 . And the voltdb code are pull from the master branch and it is up to date.

      Comment


      • #4
        nntp,
        Are you still having issues?
        Peter Zhao

        Comment


        • #5
          Thanks Peter,

          the problem still there. "ant" was Ok and "ant check " returned error.

          [exec] [junitreport] Processing /root/voltdb-voltdb-5.6/obj/release/testoutput/TESTS-TestSuites.xml to /root/voltdb-voltdb-5.6/obj/release/testoutput/report/junit-noframes.html
          [exec] [junitreport] Loading stylesheet jar:file:/usr/share/java/ant/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
          [exec] [junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser : Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
          [exec] [junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser : Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
          [exec] [junitreport] Transform time: 1860ms
          [exec] [junitreport] Processing /root/voltdb-voltdb-5.6/obj/release/testoutput/TESTS-TestSuites.xml to /root/voltdb-voltdb-5.6/obj/release/testoutput/junit-noframes.html
          [exec] [junitreport] Loading stylesheet /root/voltdb-voltdb-5.6/tools/junit-noframes.xsl
          [exec] [junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser : Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
          [exec] [junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser : Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
          [exec] [junitreport] Transform time: 540ms
          [exec] [exec] See obj/release/testoutput/report/junit-noframes.html for details.
          [exec] [exec] Suite TestQueryTimeout reports 2 failure(s).
          [exec] [exec] Testcase testIndividualProcTimeout-localCluster-1-1-JNI junit.framework.ComparisonFailure
          [exec] [exec] Testcase testIndividualProcTimeout-localCluster-2-3-JNI junit.framework.AssertionFailedError
          [exec] [exec] Suite TestPersistentBinaryDeque reports 1 failure(s).
          [exec] [exec] Testcase testInvalidDirectory junit.framework.AssertionFailedError
          [exec] [exec]
          [exec]
          [exec] BUILD FAILED
          [exec] /root/voltdb-voltdb-5.6/build.xml:1757: The following error occurred while executing this line:
          [exec] /root/voltdb-voltdb-5.6/build.xml:1951: JUnit had failures
          [exec]
          [exec] Total time: 228 minutes 34 seconds

          BUILD FAILED
          /root/voltdb-voltdb-5.6/build.xml:558: exec returned: 1

          Total time: 229 minutes 21 seconds


          ======================================

          Here is my environment :

          [root@centos ~]# cat /etc/redhat-release
          CentOS Linux release 7.1.1503 (Core)
          [root@centos ~]# uname -a
          Linux centos 3.10.0-229.14.1.el7.x86_64 #1 SMP Tue Sep 15 15:05:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
          [root@centos ~]# java -version
          java version "1.7.0_85"
          OpenJDK Runtime Environment (rhel-2.6.1.2.el7_1-x86_64 u85-b01)
          OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)
          [root@centos ~]# ant -version
          Apache Ant(TM) version 1.9.2 compiled on June 10 2014
          [root@centos ~]# python -V
          Python 2.7.5
          [root@centos ~]# make -version
          GNU Make 3.82
          Built for x86_64-redhat-linux-gnu
          Copyright (C) 2010 Free Software Foundation, Inc.
          License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
          This is free software: you are free to change and redistribute it.
          There is NO WARRANTY, to the extent permitted by law.
          [root@centos ~]# g++ --version
          g++ (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9)
          Copyright © 2013 Free Software Foundation, Inc.

          Comment


          • #6
            nntp,
            I have some suggestions that may help you.
            1) Make sure your CentOS environment is setup properly:
            sudo yum -y install ant ant-nodeps ant-junit ant-scripts ant-javadoc ant-trax \
            gcc gcc-c++ python valgrind ntp python26 git-all python-httplib2 \
            python-setuptools python-devel ccache
            2) Verify 'javac -version' is 1.7
            3) Let's try restarting from scratch. Save your work, remove local voltdb directory, 'git clone' voltdb repo, and try 'ant check'.

            Let me know how it works out.
            Peter Zhao

            Comment


            • #7
              Hi Peter,

              I have followed your instructions and do these steps from scratch.

              here is the output :

              [exec] [junitreport] Processing /root/voltdb/obj/release/testoutput/TESTS-TestSuites.xml to /root/voltdb/obj/release/testoutput/report/junit-noframes.html
              [exec] [junitreport] Loading stylesheet jar:file:/usr/share/java/ant/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
              [exec] [junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser : Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
              [exec] [junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser : Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
              [exec] [junitreport] Transform time: 2713ms
              [exec] [junitreport] Processing /root/voltdb/obj/release/testoutput/TESTS-TestSuites.xml to /root/voltdb/obj/release/testoutput/junit-noframes.html
              [exec] [junitreport] Loading stylesheet /root/voltdb/tools/junit-noframes.xsl
              [exec] [junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser : Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
              [exec] [junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser : Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
              [exec] [junitreport] Transform time: 580ms
              [exec] [exec] See obj/release/testoutput/report/junit-noframes.html for details.
              [exec] [exec] Suite TestPersistentBinaryDeque reports 1 failure(s).
              [exec] [exec] Testcase testInvalidDirectory junit.framework.AssertionFailedError
              [exec] [exec]
              [exec]
              [exec] BUILD FAILED
              [exec] /root/voltdb/build.xml:1761: The following error occurred while executing this line:
              [exec] /root/voltdb/build.xml:1955: JUnit had failures
              [exec]
              [exec] Total time: 148 minutes 43 seconds

              BUILD FAILED
              /root/voltdb/build.xml:558: exec returned: 1

              Total time: 149 minutes 15 seconds
              [root@centos voltdb]#

              Comment


              • #8
                nntp,
                I've noticed a flaw on my prior message. If you have 'git clone' the voltdb repo, we'll be in our latest version, 6.2, which requires jdk 8. Please try with jdk 8 after verifying java -version and javac -version point to version 1.8.
                Peter Zhao

                Comment


                • #9
                  Thanks Peter,

                  And the compiling and testing is ok.

                  Comment

                  Working...
                  X