librdkafka icon indicating copy to clipboard operation
librdkafka copied to clipboard

RdKafka::Conf::get(propName, propVal) returns an empty value for topic configuration properties

Open ramakrishnavaradarajan opened this issue 7 years ago • 0 comments

Description

RdKafka::Conf::get(const std::string &propName, std::string &propValue) method returns an empty property value for all topic configuration properties

How to reproduce

This issue can be reproduced in v0.11.3 : https://github.com/edenhill/librdkafka/releases/tag/v0.11.3

Here's a simple reproducer (below). This issue can be reproduced with any topic configuration property, but for illustration purposes, I chose "message.timeout.ms" below.

RdKafka::Conf* topicConf = RdKafka::Conf::create(RdKafka::Conf::CONF_TOPIC); std::string errStr(""); topicConf->set("message.timeout.ms", "10", errStr); std::string propVal; topicConf->get("message.timeout.ms", propVal); /* propVal will be empty */

Checklist

  • [x] librdkafka version (release number or git tag): v0.11.3
  • [x] Apache Kafka version: Kafka not required for bug reproduction
  • [x] librdkafka client configuration: default client configuration is sufficient for reproduction
  • [x] Operating system: No specific OS versions required for bug reproduction

ramakrishnavaradarajan avatar Feb 23 '18 22:02 ramakrishnavaradarajan