Hadoop Common
  1. Hadoop Common
  2. HADOOP-3475

MapOutputBuffer allocates 4x as much space to record capacity as intended

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.17.0
    • Fix Version/s: 0.17.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When setting up its accounting tables, MapTask.MapOutputBuffer calculates the size of each of its buffers as:

      Where #total_bytes is $io.sort.mb * 2^20 and #accounting_bytes is $io.sort.record.percent * #total_bytes
      kvbuffer: #total_bytes - #accounting_bytes
      kvoffsets: 1/4 of #accounting_bytes
      kvindices: 3/4 of #accounting_bytes
      

      kvoffsets and kvindices are ints, not bytes; the size of both arrays is incorrectly calculated.

      1. 3475-1.patch
        1 kB
        Chris Douglas
      2. 3475-2.patch
        1 kB
        Chris Douglas

        Issue Links

          Activity

          Chris Douglas created issue -
          Chris Douglas made changes -
          Field Original Value New Value
          Attachment 3475-0.patch [ 12383157 ]
          Chris Douglas made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Chris Douglas made changes -
          Attachment 3475-1.patch [ 12383158 ]
          Chris Douglas made changes -
          Attachment 3475-0.patch [ 12383157 ]
          Chris Douglas made changes -
          Attachment 3475-2.patch [ 12383271 ]
          Chris Douglas made changes -
          Resolution Fixed [ 1 ]
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Chris Douglas made changes -
          Status Resolved [ 5 ] Reopened [ 4 ]
          Resolution Fixed [ 1 ]
          Chris Douglas made changes -
          Fix Version/s 0.17.1 [ 12313190 ]
          Chris Douglas made changes -
          Link This issue blocks HADOOP-3550 [ HADOOP-3550 ]
          Chris Douglas made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Resolved [ 5 ]
          Nigel Daley made changes -
          Fix Version/s 0.18.0 [ 12312972 ]
          Gavin made changes -
          Link This issue blocks HADOOP-3550 [ HADOOP-3550 ]
          Gavin made changes -
          Link This issue is depended upon by HADOOP-3550 [ HADOOP-3550 ]

            People

            • Assignee:
              Chris Douglas
              Reporter:
              Chris Douglas
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development