question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Namespace bundle for topic not served by this instance. Please redo the lookup.

See original GitHub issue

Describe the bug Producer and Consumer throw errors when trying to publish/consume messages from topics created with bin/pulsar-admin and autoCreatedTopics. This error seems to be intermittent, some times when publishing gets an error sometimes seems to be able to publish messages and the same for consumers. Broker has configured brokerDeleteInactiveTopicsEnabled=false

To Reproduce (Our setup is a 3 broker env) Steps to reproduce the behavior:

  1. Start up your Pulsar Broker with KOP
  2. Create a partitioned topic
  3. use bin/kafka-console-producer.sh to send messages
  4. use bin/kafka-console-consumer.sh to receive messages

Expected behavior Be able to use it every time the topic created

Screenshots 2022-05-25T23:54:24,792+0000 [pulsar-io-5-3] WARN org.apache.pulsar.broker.service.BrokerService - Namespace bundle for topic (persistent://public/default/angeltest-partition-0) not served by this instance. Please redo the lookup. Request is denied: namespace=public/default 2022-05-25T23:54:24,792+0000 [pulsar-io-5-3] WARN io.streamnative.pulsar.handlers.kop.KafkaTopicManager - Get partition-0 error [Namespace bundle for topic (persistent://public/default/angeltest-partition-0) not served by this instance. Please redo the lookup. Request is denied: namespace=public/default]. 2022-05-25T23:54:24,792+0000 [pulsar-io-5-3] INFO org.apache.pulsar.broker.PulsarService - No ledger offloader configured, using NULL instance 2022-05-25T23:54:24,792+0000 [pulsar-io-5-3] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - Opening managed ledger public/default/persistent/angeltest 2022-05-25T23:54:24,794+0000 [bookkeeper-ml-scheduler-OrderedScheduler-7-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/angeltest] Closing managed ledger 2022-05-25T23:54:24,794+0000 [bookkeeper-ml-scheduler-OrderedScheduler-7-0] ERROR io.streamnative.pulsar.handlers.kop.KafkaTopicManager - [[id: 0x2254288d, L:/10.42.52.172:19092 - R:/10.127.58.41:58628]]Get empty non-partitioned topic for name persistent://public/default/angeltest 2022-05-25T23:54:24,794+0000 [bookkeeper-ml-scheduler-OrderedScheduler-7-0] ERROR io.streamnative.pulsar.handlers.kop.KafkaTopicManager - [[id: 0x2254288d, L:/10.42.52.172:19092 - R:/10.127.58.41:58628]] Failed to getTopicConsumerManager caused by getTopic 'persistent://public/default/angeltest-partition-0' returns empty

Additional context Pulsar version: 2.9.1 KOP VERSION 2.9.2.17

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
rillo-carrillocommented, Jun 13, 2022

Issue has been fix, we used to have one service for all the external connections, now we have one service for each broker for external connections.

0reactions
dispaltcommented, Dec 4, 2022

Issue has been fix, we used to have one service for all the external connections, now we have one service for each broker for external connections.

Assuming you installed this with helm, how did you manage that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Producer and Consumer failed #6542 - apache/pulsar
Namespace bundle for topic (persistent://mytenants/payCenter/consumeSuccess) not served by this instance. Please redo the lookup.
Read more >
Managing Namespaces - Apache Pulsar
Pulsar namespaces are logical groupings of topics. ... One namespace bundle can contain multiple topics but can be served by only one broker....
Read more >
Cannot create a producer in Pulsar - Stack Overflow
I am currently running Pulsar on a local Minikube instance. I am attempting to connect to the instance and create a ...
Read more >
com.yahoo.pulsar.broker.service.BrokerService.java Source code
NamespaceBundle ; import com.yahoo.pulsar.common.naming. ... broker unavailable and isolates from the clusters so, it will not serve any new * requests.
Read more >
Slack digest for #dev - 2020-02-25 - The Mail Archive
This very much seems to be some issue with a race condition that happens ... the broker is that when we see this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found