nooneuse commented on code in PR #66307:
URL: https://github.com/apache/doris/pull/66307#discussion_r3842179365


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/MetastoreEventSyncDriver.java:
##########
@@ -247,6 +247,18 @@ private void applyDescriptors(PluginDrivenExternalCatalog 
catalog, Connector con
     // legacy event.process() bodies called, now generalized to work on a 
flipped catalog.
     private void applyOne(PluginDrivenExternalCatalog catalog, Connector 
connector,
             MetastoreChangeDescriptor descriptor) throws Exception {
+        if (!affectsConstraintMetadata(descriptor)) {
+            applyOneInternal(catalog, connector, descriptor);
+            return;
+        }
+        try (ExternalCatalog.ConstraintMetadataMutationGuard ignored =
+                catalog.beginConstraintMetadataMutation()) {

Review Comment:
   alright. will add it back



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to