This is an automated email from the ASF dual-hosted git repository.
jmclean pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 7d8f43476 [#4191]Improvement: In CatalogConnectorManager.java to catch
execption in loadMetalake function. (#4230)
7d8f43476 is described below
commit 7d8f43476df34f0531e309246c96155f4a6af99a
Author: Nishtha Jain <[email protected]>
AuthorDate: Mon Jul 22 11:33:27 2024 +0530
[#4191]Improvement: In CatalogConnectorManager.java to catch execption in
loadMetalake function. (#4230)
### What changes were proposed in this pull request?
Catching exceptions of OutOfMemoryError and InternalError for method
loadMetalake of CatalogConnectorManager.
### Why are the changes needed?
Fix: #4191
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
---
.../gravitino/trino/connector/catalog/CatalogConnectorManager.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogConnectorManager.java
b/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogConnectorManager.java
index d5c5dcb15..f3b9ac126 100644
---
a/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogConnectorManager.java
+++
b/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogConnectorManager.java
@@ -133,8 +133,8 @@ public class CatalogConnectorManager {
LOG.error("Load Metalake {} failed.", usedMetalake, e);
}
}
- } catch (Throwable t) {
- LOG.error("Fatal errors when loading metalake", t);
+ } catch (Exception e) {
+ LOG.error("Error when loading metalake", e);
System.exit(-1);
}
}