php-rdkafka icon indicating copy to clipboard operation
php-rdkafka copied to clipboard

MockCluster

Open TonySma opened this issue 9 months ago • 1 comments

Description

Hello,

Is it possible to implement the RdKafka Mock Cluster for testing purpose ?

The mock seems to exist in the rdkafka lib: https://github.com/confluentinc/librdkafka/blob/master/src/rdkafka_mock.h

I'm ready to help if need with some insight Thanks you

TonySma avatar Feb 28 '25 16:02 TonySma

Hello @TonySma

Unfortunately this API is not stable currently: https://github.com/confluentinc/librdkafka/blob/93877617709eb071a0f4ec7038c54e2764abefc9/src/rdkafka_mock.h#L73-L78

 * @remark This is an experimental public API that is NOT covered by the
 *         librdkafka API or ABI stability guarantees.
 *
 *
 * @warning THIS IS AN EXPERIMENTAL API, SUBJECT TO CHANGE OR REMOVAL.

I assume it's primarily used by the librdkafka test suite.

arnaud-lb avatar Mar 01 '25 15:03 arnaud-lb