Skip to content

[BUG] Error Processing Files Larger Than 2GB Due to Integer Overflow in Data Prepper #5276

Closed

Description

@parastoosln

Describe the bug
When processing files larger than 2GB, the system throws an error indicating that the numeric value is out of range for an integer.

To Reproduce
Steps to reproduce the behavior:

  1. Upload a file larger than 2GB to the specified S3 bucket.
  2. Ensure that the S3EventBridgeNotification is configured to trigger when a new file is uploaded.
  3. Once the Data Prepper pipeline is triggered, the error shows up in the logs.

Expected behavior
The system should handle files larger than 2GB without throwing an error.

Additional context

404 [s3-source-sqs-1] ERROR org.opensearch.dataprepper.plugins.source.s3.parser.S3EventBridgeNotificationParser - SQS message with message ID:8947a26b-2500-4859-bfd1-05353e0fc232 has invalid body which cannot be parsed into EventBridgeNotification. Numeric value (2409161669) out of range of int (-2147483648 - 2147483647)
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 523] (through reference chain: org.opensearch.dataprepper.plugins.source.s3.S3EventBridgeNotification["detail"]->org.opensearch.dataprepper.plugins.source.s3.S3EventBridgeNotification$Detail["object"]->org.opensearch.dataprepper.plugins.source.s3.S3EventBridgeNotification$Object["size"])

Activity

  1. dblock commented on Jan 6, 2025

    @dblock
    Member

    [Catch All Triage - 1, 2, 3, 4, 5, 6]

  2. dlvenable commented on Feb 3, 2025

    @dlvenable
    Member

    @parastoosln , Using an int here certainly seems wrong. Would you be able to make the change to long?

  3. parastoosln commented on Feb 11, 2025

    @parastoosln
    Author

    No, as an alternative solution, we reduced the file size.

  4. LeilaMoussa commented on Feb 9, 2026

    @LeilaMoussa
    Contributor

    I will open a PR.

  5. added this to the v2.14 milestone on Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions