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

Implementing Flexible Raft with NWR #1017

Merged
merged 102 commits into from
Oct 30, 2023
Merged

Implementing Flexible Raft with NWR #1017

merged 102 commits into from
Oct 30, 2023

Conversation

1294566108
Copy link
Contributor

@1294566108 1294566108 commented Jul 26, 2023

Motivation:

  1. 结合 Quorum NWR 模型实现 Flexible Raft
  2. 为Flexible Raft添加 resetfactor API,用于动态调节factor大小

Modification:

Implementing Flexible Raft with Quorum NWR Model
Add ResetFactor API for flexible raft

Result:

Feature #1003 .

1294566108 and others added 23 commits April 9, 2023 14:21
# Conflicts:
#	jraft-core/src/main/java/com/alipay/sofa/jraft/Quorum.java
#	jraft-core/src/main/java/com/alipay/sofa/jraft/core/BallotBox.java
#	jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl.java
#	jraft-core/src/main/java/com/alipay/sofa/jraft/entity/MajorityQuorum.java
#	jraft-core/src/main/java/com/alipay/sofa/jraft/entity/NWRQuorum.java
#	jraft-core/src/main/java/com/alipay/sofa/jraft/entity/QuorumConfiguration.java
#	jraft-core/src/main/java/com/alipay/sofa/jraft/entity/QuorumFactory.java
#	jraft-core/src/main/java/com/alipay/sofa/jraft/option/NodeOptions.java
#	jraft-core/src/test/java/com/alipay/sofa/jraft/entity/NWRQuorumTest.java
@shihuili1218
Copy link
Collaborator

代码都提交了吗?

@1294566108
Copy link
Contributor Author

代码都提交了吗?

目前是最新的代码

@1294566108 1294566108 changed the title Add ResetFactor API for flexible raft Implementing Flexible Raft with NWR Sep 25, 2023
@shihuili1218
Copy link
Collaborator

@killme2008 look good for me. pls take the time to review again

@killme2008
Copy link
Contributor

@killme2008 look good for me. pls take the time to review again

Cool!
Sorry, I don't have time these days, I will review it this weekend ASAP.

@shihuili1218
Copy link
Collaborator

@killme2008 look good for me. pls take the time to review again

Cool! Sorry, I don't have time these days, I will review it this weekend ASAP.

Hi @killme2008 , I'd like to check on the progress of this PR's review. by the way, the deadline for OSPP is October 30th, and we need to ensure timely consolidation.[皱眉]

@fengjiachun fengjiachun changed the base branch from master to develop October 27, 2023 07:30
@shihuili1218
Copy link
Collaborator

shihuili1218 commented Oct 27, 2023

@1294566108 补充一下jepsen的验证结果呗。你可以在sofa-jraft-jepsen中创建pr,在这引用。后续可以关闭jepsen的pr

@1294566108
Copy link
Contributor Author

@1294566108补充一下jepsen的结果呗。你可以在sofa-jraft-jepsen中创建pr,在这引用。后续可以验证关闭jepsen的pr

已上传PR到sofa-jraft-jepsen仓库:sofastack/sofa-jraft-jepsen#3

@1294566108
Copy link
Contributor Author

@fengjiachun Hi, the problem seems to have been resolved, could you please see if it is possible to merge

@fengjiachun
Copy link
Contributor

LGTM

@fengjiachun fengjiachun merged commit 49d8842 into sofastack:develop Oct 30, 2023
1 check passed
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.

[OSPP开源之夏] 结合 NWR 实现 Flexible raft,用于自定义 Quorum 的大小
4 participants