Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix:fix the failure to obtain before image and after image on oracle and pgsql of the develop branch #4459

Merged
merged 12 commits into from
Mar 22, 2022

Conversation

tuwenlin
Copy link
Contributor

@tuwenlin tuwenlin commented Mar 12, 2022

…r databases except mysql database

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

只有develop版本#4222 pr之后才有此问题
修复除了mysql数据库之外的其他数据库生成前后镜像因大小写问题失败的问题
fixes #4460

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

}

@Override
public Set<String> keySet() {
return targetMap.keySet();
return lowerKeyToOriginMap.keySet();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里用values的话,是不是就不需要下面的内容了??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mysql数据库还是需要被转成小写的key,其他数据库才会去拿原始的key,所以这里优先返回小写的key

@caohdgege
Copy link
Contributor

你这个是bugfix,去录个对应的issue然后再这边关联一下

@tuwenlin
Copy link
Contributor Author

你这个是bugfix,去录个对应的issue然后再这边关联一下

已关联

@funky-eyes funky-eyes added first-time contributor first-time contributor module/rm-datasource rm-datasource module labels Mar 12, 2022
@funky-eyes funky-eyes added this to the 1.5.0 milestone Mar 12, 2022
@funky-eyes funky-eyes added the type: bug Category issues or prs related to bug. label Mar 12, 2022
changes/1.5.0.md Outdated
@@ -104,6 +104,7 @@ Seata 是一款开源的分布式事务解决方案,提供高性能和简单
- [[#4438](https://github.com/seata/seata/pull/4438)] 修复develop版本file模式下GlobalSession在延迟删除的情况下无法被正常删除的问题
- [[#4432](https://github.com/seata/seata/pull/4432)] 修复develop版本下ServerApplicationListener无法读取配置中心配置的问题
- [[#4452](https://github.com/seata/seata/pull/4452)] 修复'service.disableGlobalTransaction'配置的日志输出错误
- [[#4459](https://github.com/seata/seata/pull/4459)] 修复除mysql外其他数据库生成前后镜像失败的问题
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个问题是否只有develop分支如此?如果是的话需要特别标出问题所在的版本,否者会吓到正常使用的用户

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

只有develop分支才有这个问题,而且是#4222这个commit之后才会有

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

只有develop分支才有这个问题,而且是#4222这个commit之后才会有

所以你这块应该是修复develop版本除mysql外其他数据库生成前后镜像失败的问题

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

只有develop分支才有这个问题,而且是#4222这个commit之后才会有

这块要改一下,否者会吓到用1.4.2的用户

if (isMysqlSeries(dbType)) {
return addEscape(column, dbType, ColumnUtils.Escape.MYSQL);
}
if (allColumns instanceof LowerCaseLinkHashMap) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还有instanceof的必要吗?

@@ -33,6 +36,7 @@

private static final String DOT = ".";


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

空号去掉

Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

changes/1.5.0.md Outdated
@@ -104,6 +104,7 @@ Seata 是一款开源的分布式事务解决方案,提供高性能和简单
- [[#4438](https://github.com/seata/seata/pull/4438)] 修复develop版本file模式下GlobalSession在延迟删除的情况下无法被正常删除的问题
- [[#4432](https://github.com/seata/seata/pull/4432)] 修复develop版本下ServerApplicationListener无法读取配置中心配置的问题
- [[#4452](https://github.com/seata/seata/pull/4452)] 修复'service.disableGlobalTransaction'配置的日志输出错误
- [[#4459](https://github.com/seata/seata/pull/4459)] 修复除mysql外其他数据库生成前后镜像失败的问题
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

只有develop分支才有这个问题,而且是#4222这个commit之后才会有

这块要改一下,否者会吓到用1.4.2的用户

@tuwenlin tuwenlin changed the title bugfix:fix the failure to obtain before image and after image of othe… bugfix:fix the failure to obtain before image and after image on oracle and pgsql(only occur only in the develop branch) Mar 15, 2022
@tuwenlin tuwenlin changed the title bugfix:fix the failure to obtain before image and after image on oracle and pgsql(only occur only in the develop branch) bugfix:fix the failure to obtain before image and after image on oracle and pgsql(occur only in the develop branch) Mar 15, 2022
@tuwenlin tuwenlin changed the title bugfix:fix the failure to obtain before image and after image on oracle and pgsql(occur only in the develop branch) bugfix:fix the failure to obtain before image and after image on oracle and pgsql(occur only in the develop branch) Mar 15, 2022
@tuwenlin tuwenlin changed the title bugfix:fix the failure to obtain before image and after image on oracle and pgsql(occur only in the develop branch) bugfix:fix the failure to obtain before image and after image on oracle and pgsql of the develop branch Mar 15, 2022
@tuwenlin tuwenlin requested a review from caohdgege March 18, 2022 02:11
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2022

Codecov Report

Merging #4459 (96ae17c) into develop (99fc37d) will increase coverage by 0.34%.
The diff coverage is 0.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #4459      +/-   ##
=============================================
+ Coverage      48.96%   49.30%   +0.34%     
- Complexity      4030     4046      +16     
=============================================
  Files            731      731              
  Lines          25323    25330       +7     
  Branches        3137     3136       -1     
=============================================
+ Hits           12399    12490      +91     
+ Misses         11596    11517      -79     
+ Partials        1328     1323       -5     
Impacted Files Coverage Δ
...ava/io/seata/common/util/LowerCaseLinkHashMap.java 0.00% <0.00%> (ø)
...va/io/seata/rm/datasource/exec/DeleteExecutor.java 83.33% <ø> (ø)
...source/AbstractDataSourceCacheResourceManager.java 42.85% <0.00%> (-42.86%) ⬇️
...er/src/main/java/io/seata/server/ServerRunner.java 50.00% <0.00%> (-15.39%) ⬇️
.../main/java/io/seata/rm/BaseDataSourceResource.java 31.14% <0.00%> (-3.28%) ⬇️
...o/seata/server/coordinator/DefaultCoordinator.java 56.11% <0.00%> (ø)
...very/registry/zk/ZookeeperRegisterServiceImpl.java 61.76% <0.00%> (+0.73%) ⬆️
...erver/storage/file/session/FileSessionManager.java 53.59% <0.00%> (+1.30%) ⬆️
...r/console/impl/file/GlobalLockFileServiceImpl.java 97.43% <0.00%> (+2.56%) ⬆️
...o/seata/server/session/AbstractSessionManager.java 61.19% <0.00%> (+2.98%) ⬆️
... and 3 more

@funky-eyes funky-eyes merged commit 61924a9 into apache:develop Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first-time contributor first-time contributor module/rm-datasource rm-datasource module type: bug Category issues or prs related to bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

除mysql数据库外,其他数据库在delete操作获取before image失败
5 participants