[ 
https://issues.apache.org/jira/browse/OOZIE-2902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16024743#comment-16024743
 ] 

Peter Bacsko edited comment on OOZIE-2902 at 5/25/17 1:48 PM:
--------------------------------------------------------------

Looking at the code, I'm inclined to think that the test was simply incorrect 
before and it passed by accident.

This is the original test code:
{code}
        // Test when server side setting is enabled but tez-site.xml is not in 
DistributedCache
        launcherConf = ae.createLauncherConf(getFileSystem(), context, action, 
actionXml, actionConf);
        if (HadoopShims.isYARN()) {
            assertEquals("true", 
launcherConf.get(JavaActionExecutor.HADOOP_YARN_TIMELINE_SERVICE_ENABLED));
        } else {
            
assertNull(launcherConf.get(JavaActionExecutor.HADOOP_YARN_TIMELINE_SERVICE_ENABLED));
        }
{code}

The test should expect "false" and not "true", because this property is 
supposed to be true only if 
{{oozie.action.launcher.yarn.timeline-service.enabled}} is true plus we have 
{{tez-site.xml}} added to the distributed cache, which we haven't added at this 
point.

The result is expected to be "true" only in the third scenario, indicated by 
the comment "Test when server side setting is enabled and tez-site.xml is in 
DistributedCache".

So, expected value of this property in order:
1. false   (by default since Hadoop 2.5+)
2. false   (enabled server-side setting but tez-site.xml is not in the dist 
cache)
3. true    (enabled server-side setting and tez-site.xml is in the dist cache)
4. false   (disabled server-side setting and tez-site.xml is in the dist cache)

Hope this helps.


was (Author: pbacsko):
Looking at the code, I'm inclined to think that the test was simply incorrect 
before and it passed by accident.

This is the original test code:
{code}
        // Test when server side setting is enabled but tez-site.xml is not in 
DistributedCache
        launcherConf = ae.createLauncherConf(getFileSystem(), context, action, 
actionXml, actionConf);
        if (HadoopShims.isYARN()) {
            assertEquals("true", 
launcherConf.get(JavaActionExecutor.HADOOP_YARN_TIMELINE_SERVICE_ENABLED));
        } else {
            
assertNull(launcherConf.get(JavaActionExecutor.HADOOP_YARN_TIMELINE_SERVICE_ENABLED));
        }
{code}

The test should expect "false" and not "true", because this property is 
supposed to be true only if 
{{oozie.action.launcher.yarn.timeline-service.enabled}} is true plus we have 
{{tez-site.xml}} added to the distributed cache, which we haven't added at this 
point.

The result is expected to be "true" only in the third scenario, indicated by 
the comment "Test when server side setting is enabled and tez-site.xml is in 
DistributedCache".

So, expected value of this property in order:
1. false   (by default since Hadoop 2.5+)
2. false   (enabled server-side setting but tez-site.xml is not in the dist 
cache)
3. true    (enabled server-side setting and tez-site.xml is not in the dist 
cache)
4. false   (disabled server-side setting and tez-site.xml is in the dist cache)

Hope this helps.

> org.apache.oozie.action.hadoop.TestJavaActionExecutor fails after hadoop 2.6 
> upgrade
> ------------------------------------------------------------------------------------
>
>                 Key: OOZIE-2902
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2902
>             Project: Oozie
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 4.3.0
>            Reporter: Artem Ervits
>            Assignee: Artem Ervits
>            Priority: Blocker
>             Fix For: 5.0.0
>
>         Attachments: OOZIE-2902-0.patch
>
>
> after https://issues.apache.org/jira/browse/OOZIE-2780 jira, 
> {code}TestJavaActionExecutor{code} fails with
> {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[81957]: Class JavaLaunchHelper is implemented in both 
> /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/bin/java 
> (0x107ee74c0) and 
> /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/lib/libinstrument.dylib
>  (0x1112e84e0). One of the two will be used. Which one is undefined.
> Running org.apache.oozie.action.hadoop.TestJavaActionExecutor
> Tests run: 49, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 210.336 sec 
> <<< FAILURE!
> Results :
> Failed tests:   
> testUpdateConfForTimeLineServiceEnabled(org.apache.oozie.action.hadoop.TestJavaActionExecutor):
>  expected:<[tru]e> but was:<[fals]e>
> Tests run: 49, Failures: 1, Errors: 0, Skipped: 0
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Oozie Main .................................. SUCCESS [  0.487 
> s]
> [INFO] Apache Oozie Hadoop Utils hadoop-2-4.4.0-SNAPSHOT .. SUCCESS [  2.005 
> s]
> [INFO] Apache Oozie Hadoop Distcp hadoop-2-4.4.0-SNAPSHOT . SUCCESS [  0.073 
> s]
> [INFO] Apache Oozie Hadoop Auth hadoop-2-4.4.0-SNAPSHOT Test SUCCESS [  0.271 
> s]
> [INFO] Apache Oozie Hadoop Libs ........................... SUCCESS [  0.015 
> s]
> [INFO] Apache Oozie Client ................................ SUCCESS [  2.365 
> s]
> [INFO] Apache Oozie Share Lib Oozie ....................... SUCCESS [  2.465 
> s]
> [INFO] Apache Oozie Share Lib HCatalog .................... SUCCESS [  1.812 
> s]
> [INFO] Apache Oozie Share Lib Distcp ...................... SUCCESS [  0.535 
> s]
> [INFO] Apache Oozie Core .................................. FAILURE [03:52 
> min]
> [INFO] Apache Oozie Share Lib Streaming ................... SKIPPED
> [INFO] Apache Oozie Share Lib Pig ......................... SKIPPED
> [INFO] Apache Oozie Share Lib Hive ........................ SKIPPED
> [INFO] Apache Oozie Share Lib Hive 2 ...................... SKIPPED
> [INFO] Apache Oozie Share Lib Sqoop ....................... SKIPPED
> [INFO] Apache Oozie Examples .............................. SKIPPED
> [INFO] Apache Oozie Share Lib Spark ....................... SKIPPED
> [INFO] Apache Oozie Share Lib ............................. SKIPPED
> [INFO] Apache Oozie Docs .................................. SKIPPED
> [INFO] Apache Oozie WebApp ................................ SKIPPED
> [INFO] Apache Oozie Tools ................................. SKIPPED
> [INFO] Apache Oozie MiniOozie ............................. SKIPPED
> [INFO] Apache Oozie Server ................................ SKIPPED
> [INFO] Apache Oozie Distro ................................ SKIPPED
> [INFO] Apache Oozie ZooKeeper Security Tests .............. SKIPPED
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 04:03 min
> [INFO] Finished at: 2017-05-15T09:38:23-04:00
> [INFO] Final Memory: 150M/443M
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to