Skip to content

Timestamp is not generated in the key for 0.10 compatibility #24

@atharvai

Description

@atharvai

the producer doesn't seem to add a timestamp to the producer record when working with 0.10.0.0 protocol. Actually I couldn't find a way to specify the protocol to use.

Part of Kafka Config:

inter.broker.protocol.version=0.10.0.0
log.message.format.version=0.10.0.0
log.message.timestamp.type=CreateTime

Error from KafkaStreams:

Exception in thread "StreamThread-1" java.lang.IllegalArgumentException: Invalid timestamp -1
    at org.apache.kafka.clients.producer.ProducerRecord.<init>(ProducerRecord.java:60)

This means when I have a Kafka Streams application running, I need to use a WallClockTimestampExtractor which is not ideal.
Not sure if the problem is on python client side or librdkafka side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions