confluentinc / confluent-kafka-go-dev

[EXPERIMENTAL] Development / WIP / exploratory / test fork of confluent-kafka-go
Apache License 2.0
0 stars 7 forks source link

kafka.PartitionAny doesn't work for AWS MSK Kafka 2.2.1 #5

Open hapnermw opened 4 years ago

hapnermw commented 4 years ago

Description

The example producer uses kafka.PartitionAny. In the context noted, this is interpreted as the -1 partition ID which is unknown. This likely fails in other contexts; however, this happens to be the context I'm using.

How to reproduce

Run the producer example on a vanilla AWS MKS Kafka 2.2.1 instance. Since the producer doesn't create a topic (which the example should fix) you will need to create the myTopic topic prior to running this.

Checklist

Please provide the following information:

wedneyyuri commented 3 years ago

Hi @hapnermw are you still seeing this problem?