[Broker] Ignore the print the log that the topic does not exist
@@ -4554,8 +4554,9 @@ public class PersistentTopicsBase extends AdminResource {
protected void handleTopicPolicyException(String methodName, Throwable thr, AsyncResponse asyncResponse) {
Throwable cause = thr.getCause();
- if (!(cause instanceof WebApplicationException)
- || !(((WebApplicationException) cause).getResponse().getStatus() == 307)) {
+ if (!(cause instanceof WebApplicationException) || !(
+ ((WebApplicationException) cause).getResponse().getStatus() == 307
+ || ((WebApplicationException) cause).getResponse().getStatus() == 404)) {
log.error("[{}] Failed to perform {} on topic {}",
clientAppId(), methodName, topicName, cause);
}
