Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
gavingaozhangmin committed Jul 14, 2022
1 parent d6f3d8f commit cd82a89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -915,13 +915,11 @@ public void splitNamespaceBundle(
})
.exceptionally(ex -> {
if (!isRedirectException(ex)) {
log.error("[{}] Failed to split namespace bundle {}/{},
log.error("[{}] Failed to split namespace bundle {}/{}",
clientAppId(), namespaceName, bundleRange, ex);
}
Throwable realCause = FutureUtil.unwrapCompletionException(ex);
if (realCause instanceof IllegalArgumentException) {
log.error("[{}] Failed to split namespace bundle {}/{} due to {}",
clientAppId(), namespaceName, bundleRange, ex.getMessage());
asyncResponse.resume(new RestException(Response.Status.PRECONDITION_FAILED,
"Split bundle failed due to invalid request"));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,6 @@ public void splitNamespaceBundle(
}
Throwable realCause = FutureUtil.unwrapCompletionException(ex);
if (realCause instanceof IllegalArgumentException) {
log.error("[{}] Failed to split namespace bundle {}/{} due to {}",
clientAppId(), namespaceName, bundleRange, ex.getMessage());
asyncResponse.resume(new RestException(Response.Status.PRECONDITION_FAILED,
"Split bundle failed due to invalid request"));
} else {
Expand Down

0 comments on commit cd82a89

Please sign in to comment.