You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "yuqi1129 (via GitHub)" <gi...@apache.org> on 2026/08/24 07:56:50 UTC

[PR] [#12576] improvement(core): optimize schema write fencing [gravitino]

yuqi1129 opened a new pull request, #12577:
URL: https://github.com/apache/gravitino/pull/12577

   ### What changes were proposed in this pull request?
   
   - Add one schema-scoped transaction entry point that acquires the parent schema lock and runs child writes in the same transaction.
   - Migrate table, view, fileset, function, model, model-version, and topic insert/update paths to that entry point.
   - Replace six complete child metadata loads in the non-cascade schema emptiness check with one lightweight existence query that stops after the first active child.
   - Preserve missing-schema errors when the fence rejects view or fileset updates.
   - Cover all six direct child types through real service create/update paths and the existence query.
   
   This is a follow-up stacked on #12456. Until #12456 merges, GitHub also shows its commits in this draft; the #12576 follow-up itself is commit 10a17fe39e and changes 871 lines.
   
   ### Why are the changes needed?
   
   The previous implementation held the schema delete fence correctly, but every schema-scoped service had to assemble the lock and transaction manually. That made future omissions easy. Non-cascade deletion also materialized complete child objects and version information when it only needed a yes/no answer, extending the time spent under the schema delete lock.
   
   Fix: #12576
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   - Full TestSchemaMetaService on H2.
   - Full table, view, fileset, function, model, model-version, and topic service suites on H2.
   - Schema child create/update fencing, all six existence-query branches, and table/function/model-version race tests on H2, MySQL, and PostgreSQL.
   - ./gradlew :core:spotlessApply and git diff --check.


-- 
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-unsubscribe@gravitino.apache.org

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


Re: [PR] [#12576] improvement(core): optimize schema write fencing [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #12577:
URL: https://github.com/apache/gravitino/pull/12577#discussion_r4056463917


##########
core/src/main/java/org/apache/gravitino/storage/relational/service/StatisticMetaService.java:
##########
@@ -107,4 +115,34 @@ public int deleteStatisticsByLegacyTimeline(long legacyTimeline, int limit) {
         StatisticMetaMapper.class,
         mapper -> mapper.deleteStatisticsByLegacyTimeline(legacyTimeline, limit));
   }
+
+  private void doWithSchemaWriteLockIfNeeded(
+      NameIdentifier identifier,
+      Entity.EntityType type,
+      NamespacedEntityId namespacedEntityId,
+      Runnable writeOperation) {
+    long[] namespaceIds = namespacedEntityId.namespaceIds();
+    Long schemaId;
+    switch (type) {

Review Comment:
   Yes. A nested schema `A:B` is stored as its own row under the catalog, and a table below it has `schema_id` pointing at that `A:B` row, so `namespaceIds[2]` resolves to the direct parent (`RelationalEntityStoreIdResolver` goes through `HierarchicalConversionPOStorageOps`, so the logical name is translated before the lookup).
   
   Locking only the direct parent is enough because `deleteSchema(cascade = true)` soft-deletes every descendant schema row (`softDeleteSchemaMetasWithVersion`) in the same transaction before it removes the child objects by schema id. So for a statistic upsert under `A:B` while `A` is being cascade-dropped:
   - if the upsert takes its shared lock on `A:B` before the cascade updates that row, it commits first and the cascade's `softDeleteStatisticsBySchemaIds` removes it;
   - otherwise it waits for the cascade to commit and then fails with `NoSuchEntityException` because `A:B` is gone.
   
   This is the same mechanism the existing table/view/... child writes already rely on. I added `testNestedSchemaTableStatisticWriteWaitsForAncestorCascadeDelete` in `TestStatisticMetaService` to cover this case; it passes on H2, MySQL and PostgreSQL.
   



-- 
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-unsubscribe@gravitino.apache.org

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


Re: [PR] [#12576] improvement(core): optimize schema write fencing [gravitino]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12577:
URL: https://github.com/apache/gravitino/pull/12577#issuecomment-5393641944

   <!-- coverage-report -->
   ### Code Coverage Report
   |Overall Project|67.6% **`+0.62%`**|:green_circle:|
   |:-|:-|:-:|
   |Files changed|78.55%|:green_circle:|
   <br>
   
   |Module|Coverage||
   |:-|:-|:-:|
   |aliyun|1.72%|:red_circle:|
   |api|49.07% **`-0.55%`**|:green_circle:|
   |authorization-common|85.96%|:green_circle:|
   |authorization-ranger|4.38%|:red_circle:|
   |aws|42.04%|:green_circle:|
   |azure|2.47%|:red_circle:|
   |catalog-common|9.9%|:red_circle:|
   |catalog-fileset|79.81% **`+11.85%`**|:green_circle:|
   |catalog-glue|68.95%|:green_circle:|
   |catalog-hive|82.96%|:green_circle:|
   |catalog-jdbc-common|45.7%|:green_circle:|
   |catalog-jdbc-doris|82.44%|:green_circle:|
   |catalog-jdbc-mysql|79.33%|:green_circle:|
   |catalog-jdbc-postgresql|83.39%|:green_circle:|
   |catalog-jdbc-starrocks|79.16%|:green_circle:|
   |catalog-kafka|76.72%|:green_circle:|
   |catalog-lakehouse-generic|59.18%|:green_circle:|
   |catalog-lakehouse-hudi|79.1%|:green_circle:|
   |catalog-lakehouse-iceberg|85.93%|:green_circle:|
   |catalog-lakehouse-paimon|84.23%|:green_circle:|
   |catalog-model|77.72%|:green_circle:|
   |cli|44.48%|:green_circle:|
   |client-java|78.58% **`-2.04%`**|:green_circle:|
   |common|52.39%|:green_circle:|
   |core|83.5% **`-0.17%`**|:green_circle:|
   |filesystem-hadoop3|77.28%|:green_circle:|
   |flink|0.0%|:red_circle:|
   |flink-common|49.56%|:green_circle:|
   |flink-runtime|0.0%|:red_circle:|
   |gcp|14.12%|:red_circle:|
   |hadoop-auth|68.0%|:green_circle:|
   |hadoop-common|12.7%|:red_circle:|
   |hive-metastore-common|53.4%|:green_circle:|
   |iceberg-aliyun-bundle|0.0%|:red_circle:|
   |iceberg-common|64.75%|:green_circle:|
   |iceberg-rest-server|75.0%|:green_circle:|
   |idp-basic|85.98%|:green_circle:|
   |integration-test-common|0.0%|:red_circle:|
   |jobs|62.92%|:green_circle:|
   |lance-common|31.63%|:red_circle:|
   |lance-rest-server|64.78%|:green_circle:|
   |lineage|53.02%|:green_circle:|
   |optimizer|83.17%|:green_circle:|
   |optimizer-api|21.95%|:red_circle:|
   |server|87.59% **`-2.68%`**|:green_circle:|
   |server-common|79.59%|:green_circle:|
   |spark|28.57%|:red_circle:|
   |spark-common|48.12%|:green_circle:|
   |tencent|69.84%|:green_circle:|
   |trino-connector|42.21%|:green_circle:|
   
   <details>
   <summary>Files</summary>
   
   |Module|File|Coverage||
   |:-|:-|:-|:-:|
   |api|[Catalog.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/api/src/main/java/org/apache/gravitino/Catalog.java)|0.0%|:red_circle:|
   ||[Schema.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/api/src/main/java/org/apache/gravitino/Schema.java)|0.0%|:red_circle:|
   ||[Fileset.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/api/src/main/java/org/apache/gravitino/file/Fileset.java)|0.0%|:red_circle:|
   |catalog-fileset|[FilesetCatalogOperations.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/catalogs/catalog-fileset/src/main/java/org/apache/gravitino/catalog/fileset/FilesetCatalogOperations.java)|81.88%|:green_circle:|
   |client-java|[BaseSchemaCatalog.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/clients/client-java/src/main/java/org/apache/gravitino/client/BaseSchemaCatalog.java)|100.0%|:green_circle:|
   ||[FilesetCatalog.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/clients/client-java/src/main/java/org/apache/gravitino/client/FilesetCatalog.java)|100.0%|:green_circle:|
   ||[RelationalCatalog.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/clients/client-java/src/main/java/org/apache/gravitino/client/RelationalCatalog.java)|93.06%|:green_circle:|
   ||[GenericFileset.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/clients/client-java/src/main/java/org/apache/gravitino/client/GenericFileset.java)|78.57%|:green_circle:|
   ||[GenericSchema.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/clients/client-java/src/main/java/org/apache/gravitino/client/GenericSchema.java)|75.0%|:green_circle:|
   ||[ErrorHandlers.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/clients/client-java/src/main/java/org/apache/gravitino/client/ErrorHandlers.java)|53.58%|:red_circle:|
   |core|[SecretPropertyUtils.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/secret/SecretPropertyUtils.java)|100.0%|:green_circle:|
   ||[CatalogMetaPostgreSQLProvider.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/postgresql/CatalogMetaPostgreSQLProvider.java)|100.0%|:green_circle:|
   ||[FunctionMetaService.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/service/FunctionMetaService.java)|100.0%|:green_circle:|
   ||[TableMetaService.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/service/TableMetaService.java)|100.0%|:green_circle:|
   ||[ViewMetaService.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/service/ViewMetaService.java)|100.0%|:green_circle:|
   ||[SchemaMetaService.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/service/SchemaMetaService.java)|97.44%|:green_circle:|
   ||[CatalogMetaService.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/service/CatalogMetaService.java)|95.16%|:green_circle:|
   ||[ModelVersionMetaService.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/service/ModelVersionMetaService.java)|93.52%|:green_circle:|
   ||[FilesetMetaService.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/service/FilesetMetaService.java)|91.15%|:green_circle:|
   ||[CatalogMetaSQLProviderFactory.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/mapper/CatalogMetaSQLProviderFactory.java)|90.32%|:green_circle:|
   ||[CatalogMetaBaseSQLProvider.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/base/CatalogMetaBaseSQLProvider.java)|90.0%|:green_circle:|
   ||[SchemaMetaPostgreSQLProvider.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/postgresql/SchemaMetaPostgreSQLProvider.java)|88.89%|:green_circle:|
   ||[POConverters.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/utils/POConverters.java)|88.31%|:green_circle:|
   ||[ModelMetaService.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/service/ModelMetaService.java)|75.45%|:green_circle:|
   ||[SchemaMetaSQLProviderFactory.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/mapper/SchemaMetaSQLProviderFactory.java)|75.0%|:green_circle:|
   ||[TopicMetaService.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/service/TopicMetaService.java)|70.87%|:green_circle:|
   ||[SchemaMetaBaseSQLProvider.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/base/SchemaMetaBaseSQLProvider.java)|68.0%|:green_circle:|
   ||[GravitinoEnv.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/GravitinoEnv.java)|30.52%|:red_circle:|
   ||[ManagedSchemaOperations.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/catalog/ManagedSchemaOperations.java)|29.2%|:red_circle:|
   ||[CatalogMetaMapper.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/mapper/CatalogMetaMapper.java)|0.0%|:red_circle:|
   ||[SchemaMetaMapper.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/core/src/main/java/org/apache/gravitino/storage/relational/mapper/SchemaMetaMapper.java)|0.0%|:red_circle:|
   |server|[ExceptionHandlers.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/server/src/main/java/org/apache/gravitino/server/web/rest/ExceptionHandlers.java)|83.82%|:green_circle:|
   ||[GravitinoInterceptionService.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/server/src/main/java/org/apache/gravitino/server/web/filter/GravitinoInterceptionService.java)|70.97%|:green_circle:|
   ||[GravitinoServer.java](https://github.com/yuqi1129/gravitino/blob/10a17fe39e55250070c3e1bb176b7c56042c6b96/server/src/main/java/org/apache/gravitino/server/GravitinoServer.java)|61.36%|:green_circle:|
   
   </details>


-- 
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-unsubscribe@gravitino.apache.org

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


Re: [PR] [#12576] improvement(core): optimize schema write fencing [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 merged PR #12577:
URL: https://github.com/apache/gravitino/pull/12577


-- 
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-unsubscribe@gravitino.apache.org

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


Re: [PR] [#12576] improvement(core): optimize schema write fencing [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #12577:
URL: https://github.com/apache/gravitino/pull/12577#issuecomment-5582789388

   Can you continue on this 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: commits-unsubscribe@gravitino.apache.org

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


Re: [PR] [#12576] improvement(core): optimize schema write fencing [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on code in PR #12577:
URL: https://github.com/apache/gravitino/pull/12577#discussion_r4056421598


##########
core/src/main/java/org/apache/gravitino/storage/relational/service/StatisticMetaService.java:
##########
@@ -107,4 +115,34 @@ public int deleteStatisticsByLegacyTimeline(long legacyTimeline, int limit) {
         StatisticMetaMapper.class,
         mapper -> mapper.deleteStatisticsByLegacyTimeline(legacyTimeline, limit));
   }
+
+  private void doWithSchemaWriteLockIfNeeded(
+      NameIdentifier identifier,
+      Entity.EntityType type,
+      NamespacedEntityId namespacedEntityId,
+      Runnable writeOperation) {
+    long[] namespaceIds = namespacedEntityId.namespaceIds();
+    Long schemaId;
+    switch (type) {

Review Comment:
   Do u consider the hierarichal schema case?



-- 
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-unsubscribe@gravitino.apache.org

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


Re: [PR] [#12576] improvement(core): optimize schema write fencing [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #12577:
URL: https://github.com/apache/gravitino/pull/12577#discussion_r3852976784


##########
core/src/main/java/org/apache/gravitino/storage/relational/mapper/SchemaMetaMapper.java:
##########
@@ -86,6 +87,36 @@ SchemaPO selectSchemaByFullQualifiedName(
   @SelectProvider(type = SchemaMetaSQLProviderFactory.class, method = "selectSchemaMetaById")
   SchemaPO selectSchemaMetaById(@Param("schemaId") Long schemaId);
 
+  /**
+   * Returns one when an active table, view, fileset, function, model, or topic exists in the
+   * schema, and {@code null} otherwise.
+   *
+   * <p>Only a literal is selected because callers need an existence answer, not complete child
+   * metadata. The final limit also lets the database stop as soon as it finds the first child.
+   */
+  @Select({
+    "SELECT 1 FROM "
+        + TableMetaMapper.TABLE_NAME
+        + " WHERE schema_id = #{schemaId} AND deleted_at = 0",
+    "UNION ALL SELECT 1 FROM "
+        + ViewMetaMapper.TABLE_NAME
+        + " WHERE schema_id = #{schemaId} AND deleted_at = 0",
+    "UNION ALL SELECT 1 FROM "
+        + FilesetMetaMapper.META_TABLE_NAME
+        + " WHERE schema_id = #{schemaId} AND deleted_at = 0",
+    "UNION ALL SELECT 1 FROM "
+        + FunctionMetaMapper.TABLE_NAME
+        + " WHERE schema_id = #{schemaId} AND deleted_at = 0",
+    "UNION ALL SELECT 1 FROM "
+        + ModelMetaMapper.TABLE_NAME
+        + " WHERE schema_id = #{schemaId} AND deleted_at = 0",
+    "UNION ALL SELECT 1 FROM "
+        + TopicMetaMapper.TABLE_NAME
+        + " WHERE schema_id = #{schemaId} AND deleted_at = 0",
+    "LIMIT 1"
+  })

Review Comment:
   Shall we use our convention to define the SQL string in the provider, rather than add a notation here directly?



-- 
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-unsubscribe@gravitino.apache.org

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


Re: [PR] [#12576] improvement(core): optimize schema write fencing [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #12577:
URL: https://github.com/apache/gravitino/pull/12577#discussion_r3871758715


##########
core/src/main/java/org/apache/gravitino/storage/relational/mapper/SchemaMetaMapper.java:
##########
@@ -86,6 +87,36 @@ SchemaPO selectSchemaByFullQualifiedName(
   @SelectProvider(type = SchemaMetaSQLProviderFactory.class, method = "selectSchemaMetaById")
   SchemaPO selectSchemaMetaById(@Param("schemaId") Long schemaId);
 
+  /**
+   * Returns one when an active table, view, fileset, function, model, or topic exists in the
+   * schema, and {@code null} otherwise.
+   *
+   * <p>Only a literal is selected because callers need an existence answer, not complete child
+   * metadata. The final limit also lets the database stop as soon as it finds the first child.
+   */
+  @Select({
+    "SELECT 1 FROM "
+        + TableMetaMapper.TABLE_NAME
+        + " WHERE schema_id = #{schemaId} AND deleted_at = 0",
+    "UNION ALL SELECT 1 FROM "
+        + ViewMetaMapper.TABLE_NAME
+        + " WHERE schema_id = #{schemaId} AND deleted_at = 0",
+    "UNION ALL SELECT 1 FROM "
+        + FilesetMetaMapper.META_TABLE_NAME
+        + " WHERE schema_id = #{schemaId} AND deleted_at = 0",
+    "UNION ALL SELECT 1 FROM "
+        + FunctionMetaMapper.TABLE_NAME
+        + " WHERE schema_id = #{schemaId} AND deleted_at = 0",
+    "UNION ALL SELECT 1 FROM "
+        + ModelMetaMapper.TABLE_NAME
+        + " WHERE schema_id = #{schemaId} AND deleted_at = 0",
+    "UNION ALL SELECT 1 FROM "
+        + TopicMetaMapper.TABLE_NAME
+        + " WHERE schema_id = #{schemaId} AND deleted_at = 0",
+    "LIMIT 1"
+  })

Review Comment:
   Updated.



-- 
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-unsubscribe@gravitino.apache.org

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


Re: [PR] [#12576] improvement(core): optimize schema write fencing [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on PR #12577:
URL: https://github.com/apache/gravitino/pull/12577#issuecomment-5749623401

   @roryqi Please help to take a look again. 


-- 
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-unsubscribe@gravitino.apache.org

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