Skip to content

Commit

Permalink
[Fixed] throwable exception not thrown. (apache#10863)
Browse files Browse the repository at this point in the history
Fixes # throwable exception not thrown.

### Motivation

I found some throwable exception that not thrown, maybe it's a bug.
  • Loading branch information
mattisonchao authored and yangl committed Jun 23, 2021
1 parent 95b9dc9 commit 593dc8d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1377,7 +1377,7 @@ protected void internalSetBacklogQuota(BacklogQuotaType backlogQuotaType, Backlo
"[{}] 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");
}
Expand Down Expand Up @@ -1427,7 +1427,7 @@ protected void internalSetRetention(RetentionPolicies retention) {
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;
Expand Down

0 comments on commit 593dc8d

Please sign in to comment.