You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Jingguo Yao (JIRA)" <ji...@apache.org> on 2013/04/27 16:08:22 UTC
[jira] [Created] (MAPREDUCE-5190) Unnecessary condition test in
RandomSampler
Jingguo Yao created MAPREDUCE-5190:
--------------------------------------
Summary: Unnecessary condition test in RandomSampler
Key: MAPREDUCE-5190
URL: https://issues.apache.org/jira/browse/MAPREDUCE-5190
Project: Hadoop Map/Reduce
Issue Type: Improvement
Components: mrv1
Affects Versions: 1.0.4
Reporter: Jingguo Yao
Assignee: Jingguo Yao
Priority: Minor
In getSampe method, there is a condition test after "int ind = r.nextInt(numSamples);". The test is "(ind != numSamples)".
This test is unneeded since nextInt(numSamples) will not return numSamples.
--
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