Skip to content

Commit

Permalink
Topic loading in rest-api should time out in zooKeeperOperationTimeou…
Browse files Browse the repository at this point in the history
…tSeconds (apache#4805)
  • Loading branch information
massakam authored and sijie committed Jul 26, 2019
1 parent e1547e1 commit abe27e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,7 @@ public static CompletableFuture<PartitionedTopicMetadata> getPartitionedTopicMet
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;
Expand Down

0 comments on commit abe27e6

Please sign in to comment.