confluentinc / confluentinc/confluent-kafka-javascript

ERR_DLOPEN_FAILED when multiple instance of KafkaJS.Kafka is instantiated

Open
#316 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
304
Forks
45
Avg merge
11h 47m
Merged PRs (30d)
5

Description

**Environment Information**
- OS: Windows 11
- Node Version: 22.11.0
- NPM Version: 10.9.0
- confluent-kafka-javascript version: 1.2.0

**Steps to Reproduce**
Instantiate the kafka client, have two tests, run them in parallel.
You get `{ code: 'ERR_DLOPEN_FAILED' }`.

Same happens if I want to connect to two different cluster with different brokers set.

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the failure on Windows 11 with Node 22.11.0, two parallel tests, and separate broker configurations, then trace how multiple Kafka instances load their native modules. Done means both parallel tests and connections to different clusters work without ERR_DLOPEN_FAILED.

Written by the indexing model from the issue text.

Assessment

Tech stack
kafka, node.js, typescript
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.