From 18c87e23b198840e445185bab5492e8ff06f25a3 Mon Sep 17 00:00:00 2001 From: leezongjie Date: Tue, 14 Nov 2023 19:10:23 +0800 Subject: [PATCH 1/2] fix_hsf_isReference_judge --- .../integration/tx/api/remoting/parser/HSFRemotingParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-tx-api/src/main/java/io/seata/integration/tx/api/remoting/parser/HSFRemotingParser.java b/integration-tx-api/src/main/java/io/seata/integration/tx/api/remoting/parser/HSFRemotingParser.java index 1b56961ceed..8a6c54bda4c 100644 --- a/integration-tx-api/src/main/java/io/seata/integration/tx/api/remoting/parser/HSFRemotingParser.java +++ b/integration-tx-api/src/main/java/io/seata/integration/tx/api/remoting/parser/HSFRemotingParser.java @@ -55,7 +55,7 @@ public boolean isRemoting(Object bean, String beanName) { @Override public boolean isReference(Object bean, String beanName) { String beanClassName = bean.getClass().getName(); - return isHsf && ("com.taobao.hsf.app.spring.util.HSFSpringConsumerBean".equals(beanClassName) || "org.springframework.beans.factory.FactoryBean".equals(beanClassName)); + return isHsf && "com.taobao.hsf.app.spring.util.HSFSpringConsumerBean".equals(beanClassName); } @Override From d6e688255a8a3315420679f6f0d29491c678d605 Mon Sep 17 00:00:00 2001 From: leezongjie Date: Thu, 16 Nov 2023 14:09:06 +0800 Subject: [PATCH 2/2] add change list --- changes/en-us/2.0.0.md | 1 + changes/zh-cn/2.0.0.md | 1 + 2 files changed, 2 insertions(+) diff --git a/changes/en-us/2.0.0.md b/changes/en-us/2.0.0.md index 49ee6f02f5d..6f565947176 100644 --- a/changes/en-us/2.0.0.md +++ b/changes/en-us/2.0.0.md @@ -90,6 +90,7 @@ The version is updated as follows: - [[#6015](https://github.com/seata/seata/pull/6015)] fix can't integrate dubbo with spring ### optimize: +- [[#6033](https://github.com/seata/seata/pull/6033)] optimize the isReference judgment logic in HSFRemotingParser, remove unnecessary judgment about FactoryBean - [[#5966](https://github.com/seata/seata/pull/5966)] decouple saga expression handling and remove evaluator package - [[#5928](https://github.com/seata/seata/pull/5928)] add Saga statelang semantic validation - [[#5208](https://github.com/seata/seata/pull/5208)] optimize throwable getCause once more diff --git a/changes/zh-cn/2.0.0.md b/changes/zh-cn/2.0.0.md index 73012f63a0d..ef63a7db76c 100644 --- a/changes/zh-cn/2.0.0.md +++ b/changes/zh-cn/2.0.0.md @@ -90,6 +90,7 @@ Seata 是一款开源的分布式事务解决方案,提供高性能和简单 ### optimize: +- [[#6033](https://github.com/seata/seata/pull/6033)] 优化HSFRemotingParser中isReference判断逻辑,去掉关于FactoryBean的无用判断 - [[#5966](https://github.com/seata/seata/pull/5966)] Saga 表达式解耦并统一格式 - [[#5928](https://github.com/seata/seata/pull/5928)] 增加Saga模式状态机语义验证阶段 - [[#5208](https://github.com/seata/seata/pull/5208)] 优化多次重复获取Throwable#getCause问题