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

Vinayakumar B commented on HADOOP-11424:
----------------------------------------

yes. {{testOsSecureRandomSetConf}} doesnt assert anything.
I think, test's intention is to verify the closure of previous streams properly 
when the {{setConf()}} is called. I think since there is no foolproof assert 
method available for this (lsof count may change because of some other things 
also),  no assertion was done after executing lsof.

I wonder, why simple command execution hangs?

> Fix failure for TestOsSecureRandom
> ----------------------------------
>
>                 Key: HADOOP-11424
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11424
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>            Reporter: Yi Liu
>            Assignee: Yi Liu
>         Attachments: HADOOP-11424.001.patch
>
>
> Recently I usually see failure of {{testOsSecureRandomSetConf}} in 
> TestOsSecureRandom.
> https://builds.apache.org/job/PreCommit-HADOOP-Build/5298//testReport/org.apache.hadoop.crypto.random/TestOsSecureRandom/testOsSecureRandomSetConf/
> {code}
> java.lang.Exception: test timed out after 120000 milliseconds
>       at java.io.FileInputStream.readBytes(Native Method)
>       at java.io.FileInputStream.read(FileInputStream.java:272)
>       at java.io.BufferedInputStream.read1(BufferedInputStream.java:273)
>       at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
>       at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
>       at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
>       at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
>       at java.io.InputStreamReader.read(InputStreamReader.java:184)
>       at java.io.BufferedReader.fill(BufferedReader.java:154)
>       at java.io.BufferedReader.read1(BufferedReader.java:205)
>       at java.io.BufferedReader.read(BufferedReader.java:279)
>       at 
> org.apache.hadoop.util.Shell$ShellCommandExecutor.parseExecResult(Shell.java:735)
>       at org.apache.hadoop.util.Shell.runCommand(Shell.java:531)
>       at org.apache.hadoop.util.Shell.run(Shell.java:456)
>       at 
> org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)
>       at 
> org.apache.hadoop.crypto.random.TestOsSecureRandom.testOsSecureRandomSetConf(TestOsSecureRandom.java:149)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to