提交 abe27e63 编写于 作者: M massakam 提交者: Sijie Guo

Topic loading in rest-api should time out in zooKeeperOperationTimeoutSeconds (#4805)

上级 e1547e12
......@@ -1617,7 +1617,7 @@ public class PersistentTopicsBase extends AdminResource {
private Topic getTopicReference(TopicName topicName) {
try {
return pulsar().getBrokerService().getTopicIfExists(topicName.toString())
.get(pulsar().getConfiguration().getZooKeeperSessionTimeoutMillis(), TimeUnit.MILLISECONDS)
.get(pulsar().getConfiguration().getZooKeeperOperationTimeoutSeconds(), TimeUnit.SECONDS)
.orElseThrow(() -> topicNotFoundReason(topicName));
} catch (RestException e) {
throw e;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册