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

Robert Kanter commented on OOZIE-1690:
--------------------------------------

The Services should already be running when {{testEnvVar}} is running because 
they get started in the {{setUp}} method of the parent class, 
{{ActionExecutorTestCase}}.  Starting the Services again can lead to 
hard-to-track-down flaky test failures.  (On that note, in the future, whenever 
you start Services in a test, you should use a try-finally block to make sure 
the Services are always shutdown).  If you need to increase the max data 
property for the test, you should shut down the Services first.  

In ShellMain, have you tested that this doesn't cause a problem for Linux/Mac?  
If so, we'll need to add a check for the OS.

> TestShellActionExecutor#testEnvVar failed for Windows
> -----------------------------------------------------
>
>                 Key: OOZIE-1690
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1690
>             Project: Oozie
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: Ostap
>            Assignee: Ostap
>             Fix For: trunk
>
>         Attachments: OOZIE-1690.patch
>
>
> There are two errors here:
> 1. The output size of shell job for windows
> is more that default value.
> {quote}
> org.apache.oozie.action.hadoop.LauncherException: Output data size [3,946] 
> exceeds maximum [2,048]
> {quote}
> 2. Oozie reads output from job in Properties file. But when that output 
> contains \u, Properties#load method throws " Malformed \uxxxx encoding".
> because it tries to read unicode combination.
> {quote}
> C:\Users\jenkins\AppData\Local\Temp\2\1391088998824\MiniMRCluster_1473835877-localDir-nm-0_1\usercache\test\appcache\application_1391088999117_0001\container_1391088999117_0001_01_000002>dir
>  /s /b 
> C:\Users\jenkins\AppData\Local\Temp\2\1391088998824\MiniMRCluster_1473835877-localDir-nm-0_1\usercache\test\appcache\application_1391088999117_0001\container_1391088999117_0001_01_000002\.action.xml.crc
> ...
> C:\Users\jenkins\AppData\Local\Temp\2\1391088998824\MiniMRCluster_1473835877-localDir-nm-0_1\usercache\test\appcache\application_1391088999117_0001\container_1391088999117_0001_01_000002\tmp
> C:\Users\jenkins\AppData\Local\Temp\2\1391088998824\MiniMRCluster_1473835877-localDir-nm-0_1\usercache\test\appcache\application_1391088999117_0001\container_1391088999117_0001_01_000002>echo
>  var1=val1 
> var1=val1
> C:\Users\jenkins\AppData\Local\Temp\2\1391088998824\MiniMRCluster_1473835877-localDir-nm-0_1\usercache\test\appcache\application_1391088999117_0001\container_1391088999117_0001_01_000002>echo
>  var2=a=b;c=d 
> var2=a=b;c=d
> {quote}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to