dehora / nakadi-java

🌀 Client library for the Nakadi Event Broker (examples: http://bit.ly/njc-examples, site: https://dehora.github.io/nakadi-java/)
MIT License
30 stars 19 forks source link

Support log compaction #328

Closed rcillo closed 6 years ago

rcillo commented 6 years ago

Since Nakadi version 2.8.1 event types have now support for log compaction. See the API for more details.

Log compacted event types must specify an option compact cleanup policy during creation. All events from log compacted event types must contain metadata.partition_compaction_key in order for Nakadi to perform compaction.

Events sent to event types that are not log compacted should not have metadata.partition_compaction_key in their metadata. That would cause rejection of events.

I understood that gson omits null values by default but I couldn't find tests for marshalling objects into bytes.