Skip to content

Commit 6b2c5c6

Browse files
author
chengliefeng
committed
feature: add TCC three-phase hooks (apache#6731)
1 parent a2ebc11 commit 6b2c5c6

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/ActionInterceptorHandler.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,7 @@ private void doBeforeTccPrepare(String xid, String branchId, String actionName,
136136
return;
137137
}
138138
for (TccHook hook : hooks) {
139-
try {
140-
hook.beforeTccPrepare(xid, Long.valueOf(branchId), actionName, context);
141-
} catch (Exception e) {
142-
LOGGER.error("Failed execute beforeTccPrepare in hook {}", e.getMessage(), e);
143-
}
139+
hook.beforeTccPrepare(xid, Long.valueOf(branchId), actionName, context);
144140
}
145141
}
146142

@@ -157,11 +153,7 @@ private void doAfterTccPrepare(String xid, String branchId, String actionName, B
157153
return;
158154
}
159155
for (TccHook hook : hooks) {
160-
try {
161-
hook.afterTccPrepare(xid, Long.valueOf(branchId), actionName, context);
162-
} catch (Exception e) {
163-
LOGGER.error("Failed execute afterTccPrepare in hook {}", e.getMessage(), e);
164-
}
156+
hook.afterTccPrepare(xid, Long.valueOf(branchId), actionName, context);
165157
}
166158
}
167159

0 commit comments

Comments
 (0)