[
https://issues.apache.org/jira/browse/OOZIE-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15810954#comment-15810954
]
Abhishek Bafna edited comment on OOZIE-2746 at 1/9/17 8:25 AM:
---------------------------------------------------------------
[~Dongying Jiao] I tried the test on mac with branch 4.3 and it is working
fine. Please check the details below.
{noformat}
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m;
support was removed in 8.0
Concurrency config is parallel='classes', perCoreThreadCount=false,
threadCount=1, useUnlimitedThreads=false
objc[5805]: Class JavaLaunchHelper is implemented in both
/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/bin/java
and
/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/lib/libinstrument.dylib.
One of the two will be used. Which one is undefined.
Running org.apache.oozie.servlet.TestV2ValidateServlet
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.717 sec
Results :
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 54.111 s
[INFO] Finished at: 2017-01-09T12:34:23+05:30
[INFO] Final Memory: 100M/1461M
[INFO] ------------------------------------------------------------------------
HW10102:oozie abafna$ mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-10T22:11:47+05:30)
Maven home: /Users/abafna/apache-maven-3.3.9
Java version: 1.8.0_101, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.6", arch: "x86_64", family: "mac"
{noformat}
This is on a linux machine:
{noformat}
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m;
support was removed in 8.0
Concurrency config is parallel='classes', perCoreThreadCount=false,
threadCount=1, useUnlimitedThreads=false
Running org.apache.oozie.servlet.TestV2ValidateServlet
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 54.907 sec
Results :
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:29 min
[INFO] Finished at: 2017-01-09T08:14:36+00:00
[INFO] Final Memory: 112M/1830M
[INFO] ------------------------------------------------------------------------
[root@source-1 oozie]# mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-10T16:41:47+00:00)
Maven home: /root/apache-maven-3.3.9
Java version: 1.8.0_77, vendor: Oracle Corporation
Java home: /usr/jdk64/jdk1.8.0_77/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-504.1.3.el6.x86_64", arch: "amd64", family:
"unix"
{noformat}
was (Author: abhishekbafna):
[~Dongying Jiao] I tried the test on mac with branch 4.3 and it is working
fine. Please check the details below.
{noformat}
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m;
support was removed in 8.0
Concurrency config is parallel='classes', perCoreThreadCount=false,
threadCount=1, useUnlimitedThreads=false
objc[5805]: Class JavaLaunchHelper is implemented in both
/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/bin/java
and
/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/lib/libinstrument.dylib.
One of the two will be used. Which one is undefined.
Running org.apache.oozie.servlet.TestV2ValidateServlet
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.717 sec
Results :
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 54.111 s
[INFO] Finished at: 2017-01-09T12:34:23+05:30
[INFO] Final Memory: 100M/1461M
[INFO] ------------------------------------------------------------------------
HW10102:oozie abafna$ mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-10T22:11:47+05:30)
Maven home: /Users/abafna/apache-maven-3.3.9
Java version: 1.8.0_101, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.6", arch: "x86_64", family: "mac"
{noformat}
> Several tests failure in TestV2ValidateServlet.java
> ---------------------------------------------------
>
> Key: OOZIE-2746
> URL: https://issues.apache.org/jira/browse/OOZIE-2746
> Project: Oozie
> Issue Type: Test
> Components: tests
> Affects Versions: 4.2.0
> Reporter: Dongying Jiao
> Attachments: OOZIE-2746-1.patch, OOZIE-2746-2.patch,
> OOZIE-2746-3.patch, OOZIE-2746-4.patch
>
>
> I backport JIRA {{OOZIE-2159 : 'oozie validate' command should be moved
> server-side}} in oozie 4.2.0 release, but has several UT failures in
> TestV2ValidateServlet.
> For example:
> From UT output of TestV2ValidateServlet#testValidateBundle:
> {noformat}
> error[E0701], E0701: XML schema error, bundle.xml,
> org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 115; cvc-elt.1:
> Cannot find the declaration of element 'bundle-app'.
> org.apache.oozie.servlet.XServletException: E0701: XML schema error,
> bundle.xml, org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 115;
> cvc-elt.1: Cannot find the declaration of element 'bundle-app'.
> {noformat}
> If I modify validate(String xml) function in V2ValidateServlet.java from :
> {code}
> if (!e.getMessage().contains("cvc-elt.1.a"))
> { exception = e; break; }
> {code}
> to:
> {code}
> if (!e.getMessage().contains("cvc-elt.1"))
> { exception = e; break; }
> {code}
> Then this UT can pass.
> I wonder what is the difference between exception message {{cvc-elt.1}} and
> {{cvc-elt.1.a}}.
> Why {{cvc-elt.1}} is generated from my environment instead of {{cvc-elt.1.a}}?
> Thanks very much.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)