LegendPei commented on code in PR #8163:
URL: https://github.com/apache/incubator-seata/pull/8163#discussion_r3595153200
##########
json-common/json-common-core/src/main/java/org/apache/seata/common/json/JsonUtil.java:
##########
@@ -42,19 +43,32 @@ public final class JsonUtil {
JsonSerializerFactory.getSerializer(CONFIG_JSON_SERIALIZER_NAME);
static String resolveJsonSerializerName(Configuration configuration) {
- String serializerType =
configuration.getConfig(ConfigurationKeys.JSON_SERIALIZER_TYPE);
- if (StringUtils.isNotBlank(serializerType)) {
- return serializerType;
- }
-
- String deprecatedSerializerType =
+ String deprecatedTccSerializerType =
Review Comment:
JsonUtil first reads the deprecated TCC/Saga configuration, and then reads
the json.serializerType; however, the published client file.conf still sets
client.rm.sagaJsonParser = "fastjson" by default. Therefore, even if the user
configures json.serializerType=fastjson2, fastjson is still used in practice
--
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]