Node-rdkafka: Producer and consumer not disconnecting after the test is completed

Created on 13 Jan 2021  路  3Comments  路  Source: Blizzard/node-rdkafka

Environment Information

  • OS [e.g. Mac, Arch, Windows 10]: Mac
  • Node Version [e.g. 8.2.1]: 13.6.0
  • NPM Version [e.g. 5.4.2]: 6.13.4
  • C++ Toolchain [e.g. Visual Studio, llvm, g++]:
  • node-rdkafka version [e.g. 2.3.3]: 2.9.1

Steps to Reproduce

  1. Creating a producer and consumer client.
  2. Pushed a message using produce API call.
  3. Consumer consumes the message and calls the 3rd party API.
  4. Success returned from the 3rd party API.
  5. Tried disconnecting the producer using disconnect() which gives nan:AsyncWorker error and the test doesn't exits.

node-rdkafka Configuration Settings

Additional context

awaiting more info stale

All 3 comments

@webmakersteve @JaapRood @codeburke @ankon @iradul any idea what could be the issue?

which gives nan:AsyncWorker error and the test doesn't exits

I think to have a better chance for help you should post the complete error, and ideally also the code you're using.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Was this page helpful?
0 / 5 - 0 ratings