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


##########
core/src/main/java/org/apache/gravitino/storage/relational/service/FilesetMetaService.java:
##########
@@ -166,6 +166,15 @@ public void insertFileset(FilesetEntity filesetEntity, 
boolean overwrite) throws
 
       // insert both fileset meta table and version table
       SessionUtils.doMultipleWithCommit(
+          // Hold the parent schema row until this transaction ends, so the 
fileset cannot be
+          // written below a schema that is being dropped.
+          () ->
+              SchemaMetaService.getInstance()
+                  .lockSchemaForEntityWrite(

Review Comment:
   Confirmed, and I have updated the PR.



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