hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] Created: (MAPREDUCE-1583) teragen "t" parameter may be overflowing
Date Tue, 09 Mar 2010 17:11:27 GMT
teragen "t" parameter may be overflowing
----------------------------------------

                 Key: MAPREDUCE-1583
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1583
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: examples
    Affects Versions: 0.22.0
            Reporter: Steve Loughran
            Priority: Minor


My IDE is warning me that the logic in TeraGen.java to apply a T value is overflowing: 
{code}
    case 't':
      base *= 1000 * 1000 * 1000 * 1000; //here
      break;
{code}
Perhaps the IDE thinks/knows that the compiler will multiply the four integers to produce
a compile time constant, so one of them needs to be marked as 1000L to stop the size of a
terabyte being much less than expected, with consequences for sort times.

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


Mime
View raw message