librdkafka
librdkafka copied to clipboard
Fix segfault when broker has no OffsetFetch support
Fixes #4789
Before the fix (using the consumer from examples/):
$ ./consumer localhost:9092 some_group topic
% Subscribed to 1 topic(s), waiting for rebalance and messages...
Segmentation fault (core dumped)
After the fix:
$ ./consumer localhost:9092 some_group topic
% Subscribed to 1 topic(s), waiting for rebalance and messages...
% Consumer error: Failed to fetch committed offsets for 0 partition(s) in group "some_group": Local: Required feature not supported by broker