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


##########
core/src/main/java/org/apache/gravitino/catalog/SchemaOperationDispatcher.java:
##########
@@ -350,6 +351,10 @@ private void importSchema(NameIdentifier identifier) {
             .build();
     try {
       store.put(schemaEntity, true);
+    } catch (EntityAlreadyExistsException e) {
+      LOG.error("Failed to import schema {} with id {} to the store.", 
identifier, uid, e);
+      throw new UnsupportedOperationException(
+          "The schema is already managed by another catalog and cannot be 
loaded by the current catalog.");

Review Comment:
   Can you please add more words to describe the reason here, also suggesting 
users how to resolve or avoid this problem?



-- 
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: commits-unsubscr...@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to