Open klimser opened 1 year ago
This seems like a sensible change - please can we get this merged @KonstantinCodes?
Thanks for fixing this @klimser !
There are other configurations that are applied to the producer, but are only available for the consumer, see:
rdkafka#producer-1| [thrd:app]: Configuration property group.id is a consumer property and will be ignored by this producer instance
rdkafka#producer-1| [thrd:app]: Configuration property enable.auto.offset.store is a consumer property and will be ignored by this producer instance
rdkafka#producer-1| [thrd:app]: Configuration property rebalance_cb is a consumer property and will be ignored by this producer instance
Thanks for fixing this @klimser !
There are other configurations that are applied to the producer, but are only available for the consumer, see:
rdkafka#producer-1| [thrd:app]: Configuration property group.id is a consumer property and will be ignored by this producer instance rdkafka#producer-1| [thrd:app]: Configuration property enable.auto.offset.store is a consumer property and will be ignored by this producer instance rdkafka#producer-1| [thrd:app]: Configuration property rebalance_cb is a consumer property and will be ignored by this producer instance
You are right, but you can control all that properties via $options
except rebalance_cb
that is set inside the method (look at changes of this Pull request).
Thanks for fixing this @klimser ! There are other configurations that are applied to the producer, but are only available for the consumer, see:
rdkafka#producer-1| [thrd:app]: Configuration property group.id is a consumer property and will be ignored by this producer instance rdkafka#producer-1| [thrd:app]: Configuration property enable.auto.offset.store is a consumer property and will be ignored by this producer instance rdkafka#producer-1| [thrd:app]: Configuration property rebalance_cb is a consumer property and will be ignored by this producer instance
You are right, but you can control all that properties via
$options
exceptrebalance_cb
that is set inside the method (look at changes of this Pull request).
True, but if I set $options['group.id']
it will be applied to both the consumer and receiver :)
$conf->setRebalanceCb()
called either for consumer and for producer. It triggers warning from rdkafkaCONFWARN:Configuration property rebalance_cb is a consumer property and will be ignored by this producer instance
. Config divided into producer and consumer parts,->setRebalanceCb()
called for consumer config only.