Skip to content

Commit

Permalink
[Iceberg]Avoid unnecessary error log about loading view on REST catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
hantangwangd committed Dec 9, 2024
1 parent b68af58 commit 30686ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ protected void execute(ServletRequestContext context, HttpServletResponse respon
}
}
catch (RESTException e) {
if (context.route() == Route.LOAD_TABLE && e.getLocalizedMessage().contains("NoSuchTableException")) {
if ((context.route() == Route.LOAD_TABLE && e.getLocalizedMessage().contains("NoSuchTableException")) ||
(context.route() == Route.LOAD_VIEW && e.getLocalizedMessage().contains("NoSuchViewException"))) {
// Suppress stack trace for load_table requests, most of which occur immediately
// preceding a create_table request
LOG.warn("Table at endpoint %s does not exist", context.path());
Expand Down

0 comments on commit 30686ee

Please sign in to comment.