fmiguelez commented on issue #15891:
URL: https://github.com/apache/pulsar/issues/15891#issuecomment-1160243339
It also happens to us when we try to determine a topic compaction threshold.
We use Pulsar 2.8.3.
Error when issuing command to get compaction threshold:
```
root@rev-pulsar-toolset-0:/pulsar/bin# ./pulsar-admin topics
get-compaction-threshold persistent://dbus/test/dummy-objects
HTTP 500 Server Error
Reason: HTTP 500 Server Error
```
Error seen on broker:
```
10:02:50.919 [pulsar-io-4-4] INFO
org.apache.pulsar.broker.service.ServerCnx -
[PersistentTopic{topic=persistent://dbus/dgt-time-series-point/status}][rev-pulsar-4-4116]
Closed producer on cnx /10.72.168.226:33920. producerId=8040
10:02:51.016 [pulsar-2-1] ERROR
org.apache.pulsar.broker.admin.impl.PersistentTopicsBase - [null] Failed to
perform getCompactionThreshold on topic persistent://dbus/test/dummy-objects
org.apache.pulsar.broker.service.BrokerServiceException$TopicPoliciesCacheNotInitException:
Topic policies cache have not init.
at
org.apache.pulsar.broker.service.SystemTopicBasedTopicPoliciesService.getTopicPolicies(SystemTopicBasedTopicPoliciesService.java:185)
~[org.apache.pulsar-pulsar-broker-2.8.3.jar:2.8.3]
at
org.apache.pulsar.broker.service.TopicPoliciesService.lambda$getTopicPoliciesAsyncWithRetry$0(TopicPoliciesService.java:83)
~[org.apache.pulsar-pulsar-broker-2.8.3.jar:2.8.3]
at
org.apache.pulsar.client.util.RetryUtil.executeWithRetry(RetryUtil.java:49)
~[org.apache.pulsar-pulsar-client-original-2.8.3.jar:2.8.3]
at
org.apache.pulsar.client.util.RetryUtil.lambda$executeWithRetry$1(RetryUtil.java:58)
~[org.apache.pulsar-pulsar-client-original-2.8.3.jar:2.8.3]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at
java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
[?:?]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[?:?]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[?:?]
at
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[io.netty-netty-common-4.1.74.Final.jar:4.1.74.Final]
at java.lang.Thread.run(Thread.java:829) [?:?]
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]