You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Chris Douglas (JIRA)" <ji...@apache.org> on 2008/05/30 22:56:45 UTC

[jira] Updated: (HADOOP-3471) TestIndexedSort sometimes fails

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

Chris Douglas updated HADOOP-3471:
----------------------------------

    Attachment: 3471-0.patch

Fixes the assignments, adds a debug message, and removes a superfluous call from a copy/paste.

> TestIndexedSort sometimes fails
> -------------------------------
>
>                 Key: HADOOP-3471
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3471
>             Project: Hadoop Core
>          Issue Type: Bug
>            Reporter: Chris Douglas
>            Assignee: Chris Douglas
>             Fix For: 0.18.0
>
>         Attachments: 3471-0.patch
>
>
> After testing an array of equal values, TestIndexedSort::testAllEqual introduces a min and max value at random intervals:
> {noformat}
>     int diff = r.nextInt(SAMPLE);
>     values[diff] = 9;
>     values[(diff + r.nextInt(SAMPLE >>> 1)) % SAMPLE] = 11;
> {noformat}
> The max value can overwrite the min value and produce a spurious failure.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.