hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Binglin Chang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-4055) TestAuditLogs has some chances to fail.
Date Mon, 15 Oct 2012 20:33:04 GMT
Binglin Chang created HDFS-4055:

             Summary: TestAuditLogs has some chances to fail.
                 Key: HDFS-4055
                 URL: https://issues.apache.org/jira/browse/HDFS-4055
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Binglin Chang

    InputStream istream = webfs.open(file);
    int val = istream.read();

    verifyAuditLogsRepeat(true, 3);
    assertTrue("failed to read from file", val >= 0);
    byte[] toWrite = new byte[bufferLen];
    Random rb = new Random(seed);
    long bytesToWrite = fileLen;
    while (bytesToWrite>0) {
InputStream.read() return the first byte of the file, the bytes in the file is generated in
using Random.nextBytes(), so you get 1/256 chance the first byte is 0, so some times it may

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message