This is an automated email from the ASF dual-hosted git repository. penghui pushed a commit to branch branch-2.8 in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 489d24da6f78756b978e466e5799387781504701 Author: Qiang Zhao <[email protected]> AuthorDate: Tue Jun 15 10:44:57 2021 +0800 [Fixed] throwable exception not thrown. (#10863) Fixes # throwable exception not thrown. ### Motivation I found some throwable exception that not thrown, maybe it's a bug. (cherry picked from commit e0988f71630df59557356249fb9b5b46e699461c) --- .../main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java index f6d69a0..ec9de23 100644 --- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java +++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java @@ -1377,7 +1377,7 @@ public abstract class NamespacesBase extends AdminResource { "[{}] Failed to update backlog configuration" + " for namespace {}: conflicts with retention quota", clientAppId(), namespaceName); - new RestException(Status.PRECONDITION_FAILED, + throw new RestException(Status.PRECONDITION_FAILED, "Backlog Quota exceeds configured retention quota for namespace." + " Please increase retention quota and retry"); } @@ -1427,7 +1427,7 @@ public abstract class NamespacesBase extends AdminResource { log.warn("[{}] Failed to update retention configuration" + " for namespace {}: conflicts with backlog quota", clientAppId(), namespaceName); - new RestException(Status.PRECONDITION_FAILED, + throw new RestException(Status.PRECONDITION_FAILED, "Retention Quota must exceed configured backlog quota for namespace."); } policies.retention_policies = retention;
