[pulsar-broker] Policies not found
See original GitHub issueWe got this exception in our production logs:
Policies not found for myTenant/myNamespace namespace
Reason: Policies not found for myTenant/myNamespace namespace
We were able to reproduce it by running this command:
bin/pulsar-admin --admin-url http://broker12.example.com:8080 topics stats persistent://myTenant/myNamespace/myTopic
However, we were only able to reproduce it by running that command on that particular broker (broker12).
This incident happened at the same time as: https://github.com/apache/pulsar/issues/6492 and https://github.com/apache/pulsar/issues/6054
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
org.apache.pulsar.broker.web.RestException: Policies not ...
1 Answer 1 ... You need to ensure that the tenant and namespace exist that you're trying to deploy the function/sink/source into. If...
Read more >Managing Namespaces - Apache Pulsar
Namespace isolation You can use the Pulsar isolation policy to allocate resources (broker and bookie) for a namespace.
Read more >Deep Dive into Data Placement Policies - StreamNative
Pulsar brokers not only provide message services, but also offer message storage isolation with the help of BookKeeper clients. For message ...
Read more >org.apache.pulsar.broker.admin.impl.PersistentTopicsBase ...
POLICIES ; import static org.apache.pulsar.common.util. ... NOT_FOUND, "Namespace does not exist"); } catch (Exception e) { log.error("[{}] Failed to get ...
Read more >Add system topic check when delete namespace bundle.
PulsarWebResource - Policies not found for sample/ns1 namespace > 2021-12-16T16:49:04,065+0800 ... at org.apache.pulsar.broker.web.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Was just looking into a similar issue for my own system and saw your post… I identified the problem by connecting with the zookeeper client to the different zookeeper servers. I saw that the appropriate namespace entry was missing under the /namespace path on one of the zookeeper servers. The zookeeper server had lost sync with the others zookeeper servers.
To resolve, I had to clean the snapshot and log files for the out-of=sync zookeeper and restart it. It then resynced with the other servers. The error did not come out after that.
Hope this helps.
Closed as stale. Feel free to reopen it if it’s still relevant for maintained versions.