Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does 2.12.0 support being used in worker-threads? #936

Open
iklotzko opened this issue Feb 7, 2022 · 2 comments
Open

Does 2.12.0 support being used in worker-threads? #936

iklotzko opened this issue Feb 7, 2022 · 2 comments

Comments

@iklotzko
Copy link

iklotzko commented Feb 7, 2022

Environment Information

  • OS [cent os 7]:
  • Node Version [16.13.1]:
  • NPM Version [8.1.2]:
  • C++ Toolchain [g++ 7.3.1, node-gyp: 8.4.1]:
  • node-rdkafka version [e.g. 2.12.0]:

Steps to Reproduce
Create a worker thread and require('node-rdkafka');
Results: I see errors consistent with the library not being context aware when initializing in a worker thread. This isn't an issue when I use require('node-rdkafka') in the main thread.

node-rdkafka Configuration Settings
Nothing special

Additional context
I understand that there have been issues with getting node-rdkafka libraries and or itself to be context aware. It sounds like the issue was fixed, #857 but I may have misread.

I am wondering

  • Do I need to clone master from github? Or is there a beta version with this fixed?
  • Is there anything I can do to make this work?
@iklotzko
Copy link
Author

Anyone?

@relief-melone
Copy link

by now it seems like 2.13.0 does still not support worker threads sadly :( would also be a feature we'd love to see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants