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); } }