Skip to content

The custom partitioner callbacks are not invoked #26

@didier-wenzek

Description

@didier-wenzek

The partitioner callback set when a topic producer is created is not used when messages are produced with no partition assigned.

Setting a partitioner callback as in:

let partitioner_callback partition_cnt key = Some ((Hashtbl.hash key) mod partition_cnt) in
let topic = Kafka.new_topic ~partitioner_callback producer topic_name options in                                                                                                                                 
Kafka.produce topic ~key msg

we expect that the partitioner_callback is called for each message produced without a partition.
Actually, the custom callback is never invoked and the partition is assigned using the partitioner set by the partitioner property

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions