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 e64837072b [#8732] fix: Update exception handling for Type CATALOG >
MODEL_VERSION (#8740)
e64837072b is described below
commit e64837072b4da9a7b6978bea8be379001e97ee40
Author: Kwon Taeheon <[email protected]>
AuthorDate: Wed Oct 1 06:49:26 2025 +0900
[#8732] fix: Update exception handling for Type CATALOG > MODEL_VERSION
(#8740)
### What changes were proposed in this pull request?
In ModelVersionMetaService.java (updateModelVersion), change the error
type for handling RuntimeException from CATALOG to MODEL_VERSION.
### Why are the changes needed?
The incorrectly referenced type needs to be changed.
Fix: #8732
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
Passed all UTs
---
.../gravitino/storage/relational/service/ModelVersionMetaService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/src/main/java/org/apache/gravitino/storage/relational/service/ModelVersionMetaService.java
b/core/src/main/java/org/apache/gravitino/storage/relational/service/ModelVersionMetaService.java
index 042445b041..a95777c007 100644
---
a/core/src/main/java/org/apache/gravitino/storage/relational/service/ModelVersionMetaService.java
+++
b/core/src/main/java/org/apache/gravitino/storage/relational/service/ModelVersionMetaService.java
@@ -405,7 +405,7 @@ public class ModelVersionMetaService {
} catch (RuntimeException re) {
ExceptionUtils.checkSQLException(
- re, Entity.EntityType.CATALOG,
newModelVersionEntity.nameIdentifier().toString());
+ re, Entity.EntityType.MODEL_VERSION,
newModelVersionEntity.nameIdentifier().toString());
throw re;
}