This is an automated email from the ASF dual-hosted git repository.
yuqi4733 pushed a commit to branch issue_6852
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/issue_6852 by this push:
new 985b7c2942 Remove method isEntityExists
985b7c2942 is described below
commit 985b7c2942c5da8beb045a0ca25ee8a7f6d4e752
Author: yuqi <[email protected]>
AuthorDate: Thu Apr 10 16:00:17 2025 +0800
Remove method isEntityExists
---
.../java/org/apache/gravitino/catalog/OperationDispatcher.java | 9 ---------
1 file changed, 9 deletions(-)
diff --git
a/core/src/main/java/org/apache/gravitino/catalog/OperationDispatcher.java
b/core/src/main/java/org/apache/gravitino/catalog/OperationDispatcher.java
index 33ac13dac4..887468edc7 100644
--- a/core/src/main/java/org/apache/gravitino/catalog/OperationDispatcher.java
+++ b/core/src/main/java/org/apache/gravitino/catalog/OperationDispatcher.java
@@ -233,15 +233,6 @@ public abstract class OperationDispatcher {
IllegalArgumentException.class);
}
- protected boolean isEntityExist(NameIdentifier ident, Entity.EntityType
type) {
- try {
- return store.exists(ident, type);
- } catch (Exception e) {
- LOG.error(FormattedErrorMessages.STORE_OP_FAILURE, "exists", ident, e);
- throw new RuntimeException("Fail to check if entity is existed", e);
- }
- }
-
protected <E extends Entity & HasIdentifier> E getEntity(
NameIdentifier ident, Entity.EntityType type, Class<E> entityClass) {
try {