yuqi1129 commented on code in PR #13722:
URL: https://github.com/apache/gravitino/pull/13722#discussion_r4399233018


##########
catalogs/catalog-lakehouse-generic/src/main/java/org/apache/gravitino/catalog/lakehouse/lance/LanceTableOperations.java:
##########
@@ -231,10 +231,15 @@ public Table createTable(
       }
     }
 
+    // Validate registration before OVERWRITE can remove existing metadata or 
managed data.
+    if (register) {

Review Comment:
   Fixed in dc3913f099. CREATE now performs a metadata-only EntityStore.exists 
check before opening the dataset, while the final strict put(false) still 
detects a concurrent registration. Validation remains required for new CREATE 
registrations and before any OVERWRITE removal. Added an embedded HTTP 
regression for an existing name with a missing dataset: it reports 
TABLE_ALREADY_EXISTS (409) and preserves the original registration; also 
covered concurrent insertion and metadata-read failure. The related 
catalog/REST suites passed 183 tests.



-- 
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