Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-36464

Fix Underlying Size Variable Initialization in ChunkedByteBufferOutputStream for Writing Over 2GB Data

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.1.3, 2.2.3, 2.3.4, 2.4.8, 3.0.3, 3.1.2, 3.3.0
    • Fix Version/s: 3.2.0, 3.1.3, 3.0.4
    • Component/s: Spark Core
    • Labels:
      None

      Description

      The `size` method of `ChunkedByteBufferOutputStream` returns a `Long` value; however, the underlying `_size` variable is initialized as `Int`.

      That causes an overflow and returns a negative size when over 2GB data is written into `ChunkedByteBufferOutputStream`

        Attachments

          Activity

            People

            • Assignee:
              kazuyukitanimura Kazuyuki Tanimura
              Reporter:
              kazuyukitanimura Kazuyuki Tanimura
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: