Skip to content

Fix bug in s3 eventbridge notification where a new field was introduced#6932

Merged
divbok merged 1 commit into
opensearch-project:mainfrom
divbok:main
Jun 17, 2026
Merged

Fix bug in s3 eventbridge notification where a new field was introduced#6932
divbok merged 1 commit into
opensearch-project:mainfrom
divbok:main

Conversation

@divbok

@divbok divbok commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Description

AWS S3 recently added a new event-version field to the EventBridge notification detail schema. This causes Jackson deserialization failures in S3EventBridgeNotificationDetail

Added @JsonIgnoreProperties(ignoreUnknown = true) to the Detail class so that new or unexpected fields in the EventBridge notification are safely ignored. Added event-version to the schema

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

return detail;
}

@JsonIgnoreProperties(ignoreUnknown = true)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

event-version – The event schema version in the form major.minor (for example, 1.0). The major version is incremented for backward-incompatible changes to the event structure. The minor version is incremented for backward-compatible changes, such as adding new fields or introducing new event types.

We should support even-version as followup as the schema can have breaking change for major version changes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added that change

Signed-off-by: Divyansh Bokadia <dbokadia@amazon.com>
@divbok divbok merged commit 6e74852 into opensearch-project:main Jun 17, 2026
71 of 72 checks passed
kkondaka pushed a commit to kkondaka/kk-data-prepper-f2 that referenced this pull request Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants