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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.2, 2.1.3, 2.2.3, 2.3.4, 2.4.8, 3.0.3, 3.1.2, 3.3.0
    • 3.2.0, 3.1.3, 3.0.4, 3.2.1
    • Spark Core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: