jerryshao commented on code in PR #6796:
URL: https://github.com/apache/gravitino/pull/6796#discussion_r2028060649


##########
flink-connector/flink/src/main/java/org/apache/gravitino/flink/connector/store/GravitinoCatalogStore.java:
##########
@@ -86,9 +94,10 @@ public Optional<CatalogDescriptor> getCatalog(String 
catalogName) throws Catalog
       CatalogDescriptor descriptor =
           CatalogDescriptor.of(catalogName, 
Configuration.fromMap(flinkCatalogProperties));
       return Optional.of(descriptor);
-    } catch (Exception e) {
-      LOG.warn("Failed to get the catalog:{}", catalogName, e);
+    } catch (NoSuchCatalogException noSuchCatalogException) {
       return Optional.empty();
+    } catch (Exception e) {
+      throw new CatalogException(String.format("Failed to get the catalog: 
%s", catalogName), e);

Review Comment:
   This seems unrelated, maybe you can fix this in a new PR.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to