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

optimize: support oracle on delete tccfence logs #5124

Merged
merged 5 commits into from Dec 5, 2022

Conversation

Bughue
Copy link
Contributor

@Bughue Bughue commented Dec 5, 2022

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

支持oracle删除tccfence log。
#4490 这个pr中对删除tccfence进行了优化,但是没考虑oracle的情况,所以用这个pr先支持oracle的删除。

特别说明:在4490pr里面新增了 query-by-date和delete-by-id之后,TCCFenceStoreDataBaseDAO .deleteTCCFenceDOByDate这个方法其实已经没有在使用,但由于初版的设计里对他也有改动,当时的pr里把deleteTCCFenceDOByDate里涉及的SQL语句和参数也增加了limit。这次把deleteTCCFenceDOByDate方法回滚还原回原来的样子直接支持oracle删除,而mysql等其他数据库由于不再使用这个dao方法也不会受影响。

Ⅱ. Does this pull request fix one issue?

fixes #5123

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

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 @wangliang181230 PTAL

@funky-eyes funky-eyes added this to the 1.6.0 milestone Dec 5, 2022
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.

image

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 Dec 5, 2022

Codecov Report

Merging #5124 (bcd75bc) into develop (3e5af28) will decrease coverage by 0.35%.
The diff coverage is 34.78%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #5124      +/-   ##
=============================================
- Coverage      49.35%   48.99%   -0.36%     
- Complexity      4145     4169      +24     
=============================================
  Files            737      741       +4     
  Lines          26190    26521     +331     
  Branches        3232     3294      +62     
=============================================
+ Hits           12925    12993      +68     
- Misses         11881    12122     +241     
- Partials        1384     1406      +22     
Impacted Files Coverage Δ
...src/main/java/io/seata/rm/tcc/TCCFenceHandler.java 0.00% <0.00%> (ø)
...eata/rm/tcc/store/db/TCCFenceStoreDataBaseDAO.java 0.00% <ø> (ø)
...o/seata/rm/tcc/store/db/sql/TCCFenceStoreSqls.java 0.00% <ø> (ø)
...igure/properties/config/ConfigNacosProperties.java 58.33% <25.00%> (-4.17%) ⬇️
...e/properties/registry/RegistryNacosProperties.java 42.22% <25.00%> (-1.69%) ⬇️
...java/io/seata/config/nacos/NacosConfiguration.java 11.62% <75.00%> (ø)
...overy/registry/nacos/NacosRegistryServiceImpl.java 14.89% <75.00%> (ø)
...o/seata/server/session/SessionStatusValidator.java 53.84% <0.00%> (-7.70%) ⬇️
...n/src/main/java/io/seata/common/util/IdWorker.java 77.08% <0.00%> (-6.25%) ⬇️
...r/console/impl/file/GlobalLockFileServiceImpl.java 94.87% <0.00%> (-2.57%) ⬇️
... and 19 more

@wangliang181230 wangliang181230 changed the title optimize : support oracle on delete tccfence logs optimize: support oracle on delete tccfence logs Dec 5, 2022
Copy link
Contributor

@wangliang181230 wangliang181230 left a comment

Choose a reason for hiding this comment

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

LGTM

@funky-eyes funky-eyes merged commit 614454b into apache:develop Dec 5, 2022
zw201913 pushed a commit to zw201913/seata that referenced this pull request Dec 12, 2022
…o 1114_for_5073

* '1114_for_5073' of https://github.com/zw201913/seata:
  bugfix: hikari datasource auto proxy fail (apache#5134)
  bugfix: rollback active xa connection fail (apache#5131)
  optimize: support oracle on delete tccfence logs  (apache#5124)
  feature: support passing `contextPath` parameter to Nacos client (apache#5111)
  bugfix:NPE caused when there is no @GlobalTransactional annotation on the RM side  (apache#5109)
  bugfix: Druid disable oracle implicit cache (apache#5098)
  bugfix: fix access key loss after server restart (apache#5097)
  optimize: remove druid dependency in ConnectionProxy (apache#5104)
  bugfix:fix ClassNotFoundException during the ZK unit test (apache#5101)
  bugfix: fix when seata and jpa are used together, their AutoConfiguration order is incorrect (apache#5092)
  optimize: lock priority attempts to insert (apache#4681)
  bugfix: update join condition placeholder param error (apache#5052)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support oracle on delete tccfence logs
5 participants