[ 
https://issues.apache.org/jira/browse/PIG-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tom White updated PIG-2499:
---------------------------

    Attachment: PIG-2499.patch

Trivial patch.
                
> Pig TestGrunt.testShellCommand occasionally fails
> -------------------------------------------------
>
>                 Key: PIG-2499
>                 URL: https://issues.apache.org/jira/browse/PIG-2499
>             Project: Pig
>          Issue Type: Bug
>          Components: build
>            Reporter: Tom White
>         Attachments: PIG-2499.patch
>
>
> The following code fails from time to time (with a NPE since 
> {{fileReader.readLine()}} returns null) :
> {noformat}
>             strCmd = "sh bash -c 'touch TouchedFileInsideGrunt_61 | ls | grep 
> TouchedFileInsideGrunt_61 > fileContainingTouchedFileInsideGruntShell_71'";
>             cmd = new ByteArrayInputStream(strCmd.getBytes());
>             reader = new InputStreamReader(cmd);
>             grunt = new Grunt(new BufferedReader(reader), context);
>             grunt.exec();
>             fileReader = new BufferedReader(new 
> FileReader("fileContainingTouchedFileInsideGruntShell_71"));
>             
> assertTrue(fileReader.readLine().equals("TouchedFileInsideGrunt_61"));
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to