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

Consumer Stream Crashes if Topics Not Present #976

Open
CoinCoderBuffalo opened this issue Oct 10, 2022 · 0 comments
Open

Consumer Stream Crashes if Topics Not Present #976

CoinCoderBuffalo opened this issue Oct 10, 2022 · 0 comments

Comments

@CoinCoderBuffalo
Copy link

Environment Information

  • OS [e.g. Mac, Arch, Windows 10]: MAC
  • Node Version [e.g. 8.2.1]: v16.13.2
  • NPM Version [e.g. 5.4.2]: 8.19.2
  • C++ Toolchain [e.g. Visual Studio, llvm, g++]:
  • node-rdkafka version [e.g. 2.3.3]: 2.13.0

Steps to Reproduce

When creating the read stream, try passing in topic names that don't exist.

node-rdkafka Configuration Settings

const stream = Kafka.KafkaConsumer.createReadStream(consumerConfig, consumerTopicConfig, {
    topics: ['topic-a-does-not-exist', 'topic-b-does exist']
  });

Additional context

Error message thrown (and crash):

Error: Broker: Unknown topic or partition
    at Function.createLibrdkafkaError [as create] (/Users/xxx/workspace/xxx/xxx/node_modules/node-rdkafka/lib/error.js:454:10)
    at /Users/xxx/workspace/xxx/xxx/node_modules/node-rdkafka/lib/kafka-consumer.js:468:29
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

1 participant