Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-2732

DefaultSorter throws ArrayIndex exceptions on 2047 Mb size sort buffers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5.0, 0.6.0, 0.7.0
    • 0.7.1
    • None
    • None

    Description

        kvbuffer.length = 2146435072 (2047 MB)
        Corner case: bufIndex=2026133899, kvbidx=523629312.
        distkvi = mod - i + j = 2146435072 - 2026133899 + 523629312 = 643930485
        newPos = (2026133899 + (max(.., min(643930485/2, 271128624))) (This would overflow)
      

      Would be good to restrict the max allowed sort buffer to 1800 instead of 2047.

      Attachments

        1. TEZ-2732.branch-0.6-and-0.5.patch
          8 kB
          Rajesh Balamohan
        2. TEZ-2732.branch-0.7.patch
          8 kB
          Rajesh Balamohan
        3. TEZ-2732.1.patch
          9 kB
          Rajesh Balamohan

        Activity

          People

            rajesh.balamohan Rajesh Balamohan
            rajesh.balamohan Rajesh Balamohan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: