From 6b2c5c6158aae553f69da37912ef66ffe1b48189 Mon Sep 17 00:00:00 2001 From: chengliefeng Date: Tue, 27 Aug 2024 11:54:15 +0800 Subject: [PATCH] feature: add TCC three-phase hooks (#6731) --- .../tx/api/interceptor/ActionInterceptorHandler.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/ActionInterceptorHandler.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/ActionInterceptorHandler.java index 84201f379bc..3706ca50e9c 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/ActionInterceptorHandler.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/ActionInterceptorHandler.java @@ -136,11 +136,7 @@ private void doBeforeTccPrepare(String xid, String branchId, String actionName, return; } for (TccHook hook : hooks) { - try { - hook.beforeTccPrepare(xid, Long.valueOf(branchId), actionName, context); - } catch (Exception e) { - LOGGER.error("Failed execute beforeTccPrepare in hook {}", e.getMessage(), e); - } + hook.beforeTccPrepare(xid, Long.valueOf(branchId), actionName, context); } } @@ -157,11 +153,7 @@ private void doAfterTccPrepare(String xid, String branchId, String actionName, B return; } for (TccHook hook : hooks) { - try { - hook.afterTccPrepare(xid, Long.valueOf(branchId), actionName, context); - } catch (Exception e) { - LOGGER.error("Failed execute afterTccPrepare in hook {}", e.getMessage(), e); - } + hook.afterTccPrepare(xid, Long.valueOf(branchId), actionName, context); } }