confluentinc / confluentinc/confluent-kafka-python

Docs Bug: `fetch.wait.max.ms` in consumer config but shows `fetch.max.wait.ms` in official docs

Open
#1,991 2 comments 0 reactions 0 assignees View on GitHub
status:needs-more-info
Dominant language
Python
Stars
509
Forks
964
Avg merge
2d 2h
Merged PRs (30d)
14

Description

When I followed the [consumer-config document](https://docs.confluent.io/platform/current/installation/configuration/consumer-configs.html#fetch-max-wait-ms) and initial Consumer with additional config, following error occurred:
`No such configuration property: "fetch.max.wait.ms"`

![Image](https://github.com/user-attachments/assets/7994bff2-142f-4f3a-ad03-b44b6de488c2)

> [!NOTE]
> Rewrite to `fetch.wait.max.ms` and the error gone and the consumer successfully subscribe

---

### Confluent Kafka Version
2.10.0

### Reproduce

``` python
from confluent_kafka import Consumer

c = Consumer({
'bootstrap.servers': 'localhost:9093',
'group.id': 'confluent_kafka_test',
'auto.offset.reset': 'earliest',
'fetch.max.wait.ms': 1000,
})

c.subscribe(['test_topic'])
```

```bash
---------------------------------------------------------------------------
KafkaException Traceback (most recent call last)

1 from confluent_kafka import Consumer
----> 3 c = Consumer({
4 'bootstrap.servers': 'localhost:9093',
5 'group.id': 'confluent_kafka_test',
6 'auto.offset.reset': 'earliest',
7 'fetch.max.wait.ms': 1000,
8 })
10 c.subscribe(['test_topic'])

KafkaException: KafkaError{code=_INVALID_ARG,val=-186,str="No such configuration property: "fetch.max.wait.ms""}
```

### Are you willing to submit a PR?

- [x] Yes I am willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.