librdkafka icon indicating copy to clipboard operation
librdkafka copied to clipboard

The lib can't work on windows.

Open taoyonggang opened this issue 1 year ago • 2 comments

Read the FAQ first: https://github.com/confluentinc/librdkafka/wiki/FAQ

Do NOT create issues for questions, use the discussion forum: https://github.com/confluentinc/librdkafka/discussions

Description

result = m_producerConfig->set("metadata.broker.list", m_brokers, error_str);
if (result != RdKafka::Conf::CONF_OK)
{
    std::cout << "Global Conf set bootstrap.servers failed: " << error_str << std::endl;
}

The result will get conf_unknown in windows with vcpkg.

But it is running goog at ubuntu.

I have test 2.2.0,2.1.1,1.9.2. There are same error. The lib can't work on windows.

How to reproduce

<your steps how to reproduce goes here, or remove section if not relevant>

IMPORTANT: Always try to reproduce the issue on the latest released version (see https://github.com/confluentinc/librdkafka/releases), if it can't be reproduced on the latest version the issue has been fixed.

Checklist

IMPORTANT: We will close issues where the checklist has not been completed.

Please provide the following information:

  • [x] librdkafka version (release number or git tag): <REPLACE with e.g., v0.10.5 or a git sha. NOT "latest" or "current">
  • [ ] Apache Kafka version: <REPLACE with e.g., 0.10.2.3>
  • [ ] librdkafka client configuration: <REPLACE with e.g., message.timeout.ms=123, auto.reset.offset=earliest, ..>
  • [ ] Operating system: <REPLACE with e.g., Centos 5 (x64)>
  • [ ] Provide logs (with debug=.. as necessary) from librdkafka
  • [ ] Provide broker log excerpts
  • [ ] Critical issue

taoyonggang avatar Dec 26 '23 13:12 taoyonggang

I have found the reasion. The “Microsoft Visual Studio Community 2022” auto to copy the release dll to my debug program. So I cost one day.

taoyonggang avatar Dec 26 '23 13:12 taoyonggang

@taoyonggang does that mean this issue can be closed?

nhaq-confluent avatar Jan 31 '24 23:01 nhaq-confluent