You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.0.0_zh.md 12 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. ### 2.0.0
  16. <details>
  17. <summary><mark>版本变更</mark></summary>
  18. # Seata-go 2.0.0
  19. Seata-go 2.0.0 已发布。
  20. Seata-go 是一个易于使用、高性能的开源分布式事务解决方案。
  21. 本版本更新内容如下:
  22. ## 新增特性(feature):
  23. - [[#761](https://github.com/apache/incubator-seata-go/pull/761)] 支持 Update join。
  24. - [[#806](https://github.com/apache/incubator-seata-go/pull/806)] 新增 Release Drafter 配置文件。
  25. - [[#659](https://github.com/apache/incubator-seata-go/pull/659)] 为 AT undo log 支持压缩。
  26. - [[#574](https://github.com/apache/incubator-seata-go/pull/574)] 支持基于文件(file)和 Nacos 的服务注册。
  27. - [[#584](https://github.com/apache/incubator-seata-go/pull/584)] 在 remoting 模块中支持 ConsistentHash 负载均衡策略。
  28. - [[#585](https://github.com/apache/incubator-seata-go/pull/585)] 在 remoting 模块中支持 LeastActive 负载均衡策略。
  29. - [[#605](https://github.com/apache/incubator-seata-go/pull/605)] 支持 Etcd 的服务发现。
  30. - [[#622](https://github.com/apache/incubator-seata-go/pull/622)] 为远程调用新增轮询(round robin)策略。
  31. - [[#691](https://github.com/apache/incubator-seata-go/pull/691)] 支持 protobuf 格式的 undo log 解析器。
  32. - [[#738](https://github.com/apache/incubator-seata-go/pull/738)] 在发送心跳消息失败时移除会话。
  33. - [[#739](https://github.com/apache/incubator-seata-go/pull/739)] 支持表元数据缓存的自动刷新功能。
  34. ## 修复(bugfix):
  35. - [[#877](https://github.com/apache/incubator-seata-go/pull/857)] 删除 metadatacache 的 uppertablenamekey,并在 tablemeta 中增加 uppertablename 字段。
  36. - [[#861](https://github.com/apache/incubator-seata-go/pull/861)] 更新 README 中的项目图标。
  37. - [[#834](https://github.com/apache/incubator-seata-go/pull/834)] 解决引入多个版本 knadh 导致的冲突问题。
  38. - [[#839](https://github.com/apache/incubator-seata-go/pull/839)] 修复 Action 错误。
  39. - [[#850](https://github.com/apache/incubator-seata-go/pull/850)] 修复删除类 SQL 的表解析失败问题。
  40. - [[#823](https://github.com/apache/incubator-seata-go/pull/823)] 移除 issue 翻译工作流。
  41. - [[#820](https://github.com/apache/incubator-seata-go/pull/820)] 修复由通用库引起的潜在安全漏洞。
  42. - [[#810](https://github.com/apache/incubator-seata-go/pull/810)] 修复在使用 queryContext 时导致事务失败的问题。
  43. - [[#813](https://github.com/apache/incubator-seata-go/pull/813)] 为若干文件添加许可头。
  44. - [[#771](https://github.com/apache/incubator-seata-go/pull/771)] 修复 MySQL `INSERT ... ON DUPLICATE UPDATE` 在大小写敏感场景下匹配不正确的问题。
  45. - [[#797](https://github.com/apache/incubator-seata-go/pull/797)] 为部分文件添加 ASF 头。
  46. - [[#781](https://github.com/apache/incubator-seata-go/pull/781)] 修复因表名大小写混合导致相同记录出现不同 lowkeys 的问题。
  47. - [[#780](https://github.com/apache/incubator-seata-go/pull/780)] 修复无法通过 JSON 解码 MySQL `TEXT` 类型的 ColumnImage 的问题。
  48. - [[#782](https://github.com/apache/incubator-seata-go/pull/782)] 修复无法通过 JSON 解码 MySQL `TEXT` 类型的 ColumnImage 的问题(重复修复项)。
  49. - [[#789](https://github.com/apache/incubator-seata-go/pull/789)] 在 NOTICE 中添加 2025 年。
  50. - [[#776](https://github.com/apache/incubator-seata-go/pull/776)] 修复 CI lint 类型检查错误。
  51. - [[#540](https://github.com/apache/incubator-seata-go/pull/540)] 修复初始化 XA 时的 panic 错误。
  52. - [[#590](https://github.com/apache/incubator-seata-go/pull/590)] 修复若干仓库错误。
  53. - [[#595](https://github.com/apache/incubator-seata-go/pull/595)] 在提交(commit)或回滚(rollback)时检查响应错误是否为 nil。
  54. - [[#607](https://github.com/apache/incubator-seata-go/pull/607)] 修复 Jackson 序列化的相关 bug。
  55. - [[#665](https://github.com/apache/incubator-seata-go/pull/665)] 回收心跳响应消息,以避免 GettyRemoting.future 的内存泄漏。
  56. - [[#672](https://github.com/apache/incubator-seata-go/pull/672)] 修复 AT 回滚的错误。
  57. - [[#674](https://github.com/apache/incubator-seata-go/pull/674)] 修复 XA 回滚的错误。
  58. - [[#690](https://github.com/apache/incubator-seata-go/pull/690)] 修复 AT undo log 的 Jackson 解析器未找到的问题。
  59. - [[#701](https://github.com/apache/incubator-seata-go/pull/701)] 修复 InsertOnDuplicateUpdate 绕过主键修改所导致的问题。
  60. - [[#717](https://github.com/apache/incubator-seata-go/pull/717)] 支持 XA 向 TC 报告状态。
  61. - [[#724](https://github.com/apache/incubator-seata-go/pull/724)] 为 SQL 解析器支持 ParenthesesExpr(括号表达式)。
  62. - [[#736](https://github.com/apache/incubator-seata-go/pull/736)] 修复 SQL 语句未正确关闭的问题。
  63. - [[#743](https://github.com/apache/incubator-seata-go/pull/743)] 修复 gomonkey 相关的 bug。
  64. - [[#749](https://github.com/apache/incubator-seata-go/pull/749)] 修复心跳相关的 bug。
  65. ## 优化(optimize):
  66. - [[#837](https://github.com/apache/incubator-seata-go/pull/837)] 优化 AT 模型中构建锁键的性能。
  67. - [[#824](https://github.com/apache/incubator-seata-go/pull/824)] 更新 Makefile 中的 SHA256 校验命令以兼容跨平台。
  68. - [[#777](https://github.com/apache/incubator-seata-go/pull/777)] 优化事务超时判断逻辑。
  69. - [[#786](https://github.com/apache/incubator-seata-go/pull/786)] 支持 IPv6。
  70. - [[#802](https://github.com/apache/incubator-seata-go/pull/802)] 在连接中支持获取数据库版本。
  71. - [[#745](https://github.com/apache/incubator-seata-go/pull/745)] 优化 fence 日志的每日删除策略。
  72. - [[#767](https://github.com/apache/incubator-seata-go/pull/767)] 升级若干依赖包以消除对部分已归档仓库的依赖。
  73. - [[#768](https://github.com/apache/incubator-seata-go/pull/768)] 将解析器更新至 v0.2.17。
  74. - [[#576](https://github.com/apache/incubator-seata-go/pull/576)] 在 CI 中使用 mirromutth/mysql-action 替换 icomponent/mysql-action。
  75. - [[#594](https://github.com/apache/incubator-seata-go/pull/594)] 优化分支提交处理器的日志。
  76. - [[#621](https://github.com/apache/incubator-seata-go/pull/621)] 为 CI 添加 CodeQL。
  77. - [[#631](https://github.com/apache/incubator-seata-go/pull/631)] 将 crypto 版本从 0.9.0 升级至 0.17.0。
  78. - [[#652](https://github.com/apache/incubator-seata-go/pull/652)] 将 gRPC 版本从 1.51.0 升级至 1.56.3。
  79. - [[#667](https://github.com/apache/incubator-seata-go/pull/667)] 将 issue 与 pull request 的邮箱由 dev 更改为 notifications。
  80. - [[#678](https://github.com/apache/incubator-seata-go/pull/678)] 将模块名重命名为 `seata.apache.org/seata-go`。
  81. - [[#679](https://github.com/apache/incubator-seata-go/pull/679)] 将 getty 版本从 1.4.9 升级至 1.4.10。
  82. - [[#714](https://github.com/apache/incubator-seata-go/pull/714)] 优化构建锁键的速度。
  83. - [[#719](https://github.com/apache/incubator-seata-go/pull/719)] 在 AT 执行 INSERT SQL 时仅保存被插入的字段。
  84. - [[#721](https://github.com/apache/incubator-seata-go/pull/721)] 修复翻译机器人不可用的问题。
  85. - [[#758](https://github.com/apache/incubator-seata-go/pull/758)] 移除未使用的文件。
  86. ## 测试(test):
  87. - [[#570](https://github.com/apache/incubator-seata-go/pull/570)] 添加 collection 单元测试。
  88. - [[#571](https://github.com/apache/incubator-seata-go/pull/571)] 添加 convert 单元测试。
  89. - [[#572](https://github.com/apache/incubator-seata-go/pull/572)] 添加 reflectx 单元测试。
  90. - [[#5835f0](https://github.com/apache/incubator-seata-go/commit/5835f09ecfd6edeb04c2961163bc4460f578e942)] 添加 random loadbalance 单元测试。
  91. - [[#599](https://github.com/apache/incubator-seata-go/pull/599)] 添加 xid loadbalance 单元测试。
  92. ## 文档(doc):
  93. - [[#844](https://github.com/apache/incubator-seata-go/pull/844)] 丰富项目 README。
  94. - [[#760](https://github.com/apache/incubator-seata-go/pull/760)] V2.0.0 发布更新器。
  95. - [[#614](https://github.com/apache/incubator-seata-go/pull/614)] 升级具有未知许可证的依赖。
  96. - [[#632](https://github.com/apache/incubator-seata-go/pull/632)] 添加 ASF 基本配置。
  97. - [[#633](https://github.com/apache/incubator-seata-go/pull/633)] 优化 ASF 基本配置以移除上下文检查。
  98. - [[#644](https://github.com/apache/incubator-seata-go/pull/644)] 优化 README 文件。
  99. - [[#686](https://github.com/apache/incubator-seata-go/pull/686)] 在 CI 中添加更多 linter。
  100. - [[#737](https://github.com/apache/incubator-seata-go/pull/737)] 修改 README 并更新当前已完成的工作项。
  101. - [[#756](https://github.com/apache/incubator-seata-go/pull/756)] 更新许可检查器。
  102. ## 贡献者(contributors):
  103. 感谢以下贡献者的代码提交。若有遗漏请告知。
  104. - [luky116](https://github.com/luky116)
  105. - [Code-Fight](https://github.com/Code-Fight)
  106. - [wt-better](https://github.com/wt-better)
  107. - [luweiqianyi](https://github.com/luweiqianyi)
  108. - [wang1309](https://github.com/wang1309)
  109. - [576470954](https://github.com/576470954)
  110. - [No-SilverBullet](https://github.com/No-SilverBullet)
  111. - [solisamicus](https://github.com/solisamicus)
  112. - [marsevilspirit](https://github.com/marsevilspirit)
  113. - [lxfeng1997](https://github.com/lxfeng1997)
  114. - [AlexStocks](https://github.com/AlexStocks)
  115. - [smiletrl](https://github.com/smiletrl)
  116. - [ptyin](https://github.com/ptyin)
  117. - [yizhibian](https://github.com/yizhibian)
  118. - [oldmee](https://github.com/oldmee)
  119. - [air-3](https://github.com/air-3)
  120. - [slievrly](https://github.com/slievrly)
  121. - [xjlgod](https://github.com/xjlgod)
  122. - [baerwang](https://github.com/baerwang)
  123. - [xyombo](https://github.com/xyombo)
  124. - [testwill](https://github.com/testwill)
  125. - [jasondeng1997](https://github.com/jasondeng1997)
  126. - [jsbxyyx](https://github.com/jsbxyyx)
  127. - [iSuperCoder](https://github.com/iSuperCoder)
  128. - [georgehao](https://github.com/georgehao)
  129. - [liuyuecai](https://github.com/liuyuecai)
  130. - [106umao](https://github.com/106umao)
  131. - [FinnTew](https://github.com/FinnTew)
  132. - [funky-eyes](https://github.com/funky-eyes)
  133. - [tanzegen](https://github.com/tanzegen)
  134. - [lovepoem](https://github.com/lovepoem)
  135. - [MinatoWu](https://github.com/MinatoWu)
  136. - [LucienShen-Liu](https://github.com/LucienShen-Liu)
  137. - [panlei-coder](https://github.com/panlei-coder)
  138. - [lixingjia77](https://github.com/lixingjia77)
  139. - [Road2Melon](https://github.com/Road2Melon)
  140. - [Similarityoung](https://github.com/Similarityoung)
  141. - [YvCeung](https://github.com/YvCeung)
  142. - [pjfanning](https://github.com/pjfanning)
  143. - [hokkine](https://github.com/hokkine)
  144. - [zhangymPerson](https://github.com/zhangymPerson)
  145. - [ForestLH](https://github.com/ForestLH)
  146. 此外,我们从社区收到了许多有价值的问题、提问与建议,特此致谢。
  147. </detail>