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

feature:support redis distributed lock to prevent TC competition #3683

Merged
merged 72 commits into from
Jun 22, 2021
Merged

feature:support redis distributed lock to prevent TC competition #3683

merged 72 commits into from
Jun 22, 2021

Conversation

lightClouds917
Copy link
Contributor

@lightClouds917 lightClouds917 commented Apr 28, 2021

Ⅰ. Describe what this PR did

feature:support redis distributed lock to prevent multiple TCs Competitive process the scheduled task,like retryRollbacking,retryCommitting......

Ⅱ. 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

主要功能点:
1.新增了spi机制根据db类型加载具体的分布式锁实现,抽象出一层工厂;
2.新增了file的分布式锁默认实现,直接return true;
3.新增了redis的分布式锁实现;
4.新增了默认实现,直接return true;
5.优化了分布式锁的入口和方法语义;
6.测试用例均添加了,但是由于目前jedis-mock版本问题,均注释掉了,找到合适的版本后再开启。

lightClouds917 and others added 30 commits March 5, 2020 14:51
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

Copy link
Contributor

@caohdgege caohdgege left a comment

Choose a reason for hiding this comment

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

LGTM

@caohdgege caohdgege merged commit 647c309 into apache:develop Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/server server module type: feature Category issues or prs related to feature request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants