[ https://issues.apache.org/jira/browse/PIG-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai updated PIG-2499: ---------------------------- Resolution: Fixed Hadoop Flags: Reviewed Status: Resolved (was: Patch Available) I do see it occasionally as well. Patch committed to trunk. Thanks Tom! > 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 > Assignee: 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