-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Description
This is a summary of changes that should go into the next version of the API (SONAME version 2).
C
- Replace all error codes (
rd_kafka_resp_err_t) with error objects (rd_kafka_error_t *). - Rename error_cb to event_cb - usable both for events and errors.
- Provide a severity level in event_cb to let the application know the severity of the error.
- Move log_cb to event_cb.
- Logs, errors and events are all events and shall be treated equally through the event_cb.
- Decomission all uses of errno. Consistently return error objects from all relevant functions.
- Remove dr_cb.
- Add
flagsfield tord_kafka_message_t, see issue Add producing batched messages #112 - Add
opaquetord_kafka_message_t - Add
errstrtord_kafka_message_t, cant reuse payload in dr_cb. - Make rd_kafka_message_t a private type
- Remove legacy consumer.
- Add a richer error type that contains severity. ✅
C++
- ABI safe design
General
- Make murmur2_random the default partitioner to be consistent with Java producer.
- Remove legacy configuration properties, such as the topic-level
auto.commit.enablethat is often confused with the new consumerenable.auto.commit