pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom White (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PIG-2499) Pig TestGrunt.testShellCommand occasionally fails
Date Tue, 31 Jan 2012 19:38:10 GMT
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


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

        

Mime
View raw message