You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/06/01 06:52:12 UTC

[GitHub] [pulsar] truong-hua commented on issue #10231: Exception using topic level policies

truong-hua commented on issue #10231:
URL: https://github.com/apache/pulsar/issues/10231#issuecomment-1143185388

   I got the same issue with Pulsar 2.10.0 but it's weird that the error happened on a specific topic and not with others in the same namespace.
   
   Exception is:
   ```
    --- An unexpected error occurred in the server ---
   
   Message: Topic policies cache have not init.
   
   Stacktrace:
   
   org.apache.pulsar.broker.service.BrokerServiceException$TopicPoliciesCacheNotInitException: Topic policies cache have not init.
           at org.apache.pulsar.broker.service.SystemTopicBasedTopicPoliciesService.getTopicPolicies(SystemTopicBasedTopicPoliciesService.java:207)
           at org.apache.pulsar.broker.service.TopicPoliciesService.lambda$getTopicPoliciesAsyncWithRetry$0(TopicPoliciesService.java:100)
           at org.apache.pulsar.client.util.RetryUtil.executeWithRetry(RetryUtil.java:48)
           at org.apache.pulsar.client.util.RetryUtil.lambda$null$1(RetryUtil.java:57)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
           at java.base/java.lang.Thread.run(Thread.java:829)
   ```
   
   I make the same Rest API request to another topic in the same namespace and tenant and it's success. Also tried to delete the topic and recreate and it's the same. I checked all partitions of the topic is created properly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org