Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omit metadata.partition_compaction_key if null #193

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ePaul
Copy link
Member

@ePaul ePaul commented Oct 1, 2024

In #164, support for compacted event types was introduced.
This was implemented by adding a new nullable property to the NakadiMetadata class.

It turns out that for the value null (which is the default if no compaction key extractor is configured), depending on the configuration of the used object mapper, a "partition_compaction_key": null is included in the JSON stream. Nakadi will reject such event submissions for non-compacted event types.

This change is meant to tell Jackson to exclude this property if null, even if the mapper configuration says something else.

TODO: we should get some tests for this.

@roskenet
Copy link

roskenet commented Oct 7, 2024

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants