New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix call sync method in async rest API for internalGetSubscriptionsForNonPartitionedTopic
#13745
Fix call sync method in async rest API for internalGetSubscriptionsForNonPartitionedTopic
#13745
Conversation
internalGetSubscriptionsForNonPartitionedTopic
sinternalGetSubscriptionsForNonPartitionedTopics
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
Thanks @codelipenghui, PTAL :) |
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
internalGetSubscriptionsForNonPartitionedTopics
internalGetSubscriptionsForNonPartitionedTopic
/pulsarbot rerun-failure-checks |
…l/PersistentTopicsBase.java Co-authored-by: lipenghui <penghui@apache.org>
…l/PersistentTopicsBase.java Co-authored-by: lipenghui <penghui@apache.org>
…l/PersistentTopicsBase.java Co-authored-by: lipenghui <penghui@apache.org>
…l/PersistentTopicsBase.java Co-authored-by: lipenghui <penghui@apache.org>
- Due to async method do not hanlde ``NOT_ALLOWED_EXCEPTION``.
/pulsarbot rerun-failure-checks |
validateTopicOperationAsync(topicName, operation, subscription).get(); | ||
} catch (InterruptedException | ExecutionException e) { | ||
Throwable cause = e.getCause(); | ||
log.error("Validate Topic [%s] operation [%s] got server internal error.", cause); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please correct the log content.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed it. :)
Since we're throwing a new exception below, I don't think we need to log here anymore.
/pulsarbot rerun-failure-checks |
Motivation
Avoid call sync method in async rest API for
PersistentTopicsBase#internalGetSubscriptionsForNonPartitionedTopic
.Modifications
Verifying this change
Does this pull request potentially affect one of the following parts:
Documentation
no-need-doc