[Fixed]  throwable exception not thrown.
Fixes # throwable exception not thrown.
### Motivation
I found some throwable exception that not thrown, maybe it's a bug.
@@ -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;
