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

fix: transfer add_peer/remove_peer command to leader #2112

Merged
merged 2 commits into from
Feb 20, 2023

Conversation

simon824
Copy link
Member

fixed #2111

Environment

127.0.0.1:9001 127.0.0.1:9002 127.0.0.1:9003
server.role master worker worker
raft.role replicator leader replicator

1. list all peers

image

2. add peer 127.0.0.1:9003

image

3. check async task

image

4. list all peers again

image

@codecov
Copy link

codecov bot commented Feb 16, 2023

Codecov Report

Merging #2112 (367ed7d) into master (c8e0f0c) will decrease coverage by 4.24%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master    #2112      +/-   ##
============================================
- Coverage     69.38%   65.14%   -4.24%     
- Complexity      977      979       +2     
============================================
  Files           479      481       +2     
  Lines         39655    39701      +46     
  Branches       5578     5580       +2     
============================================
- Hits          27513    25863    -1650     
- Misses         9489    11272    +1783     
+ Partials       2653     2566      -87     
Impacted Files Coverage Δ
...ache/hugegraph/backend/store/raft/RaftContext.java 0.00% <0.00%> (-80.96%) ⬇️
...graph/backend/store/raft/RaftGroupManagerImpl.java 0.00% <0.00%> (-28.34%) ⬇️
...graph/backend/store/raft/rpc/AddPeerProcessor.java 0.00% <0.00%> (ø)
...ph/backend/store/raft/rpc/RemovePeerProcessor.java 0.00% <0.00%> (ø)
...hugegraph/backend/store/raft/RaftStoreClosure.java 0.00% <0.00%> (-100.00%) ⬇️
...ugegraph/backend/store/rocksdb/RocksDBMetrics.java 0.00% <0.00%> (-85.87%) ⬇️
.../org/apache/hugegraph/variables/HugeVariables.java 0.00% <0.00%> (-85.06%) ⬇️
...gegraph/backend/store/rocksdb/RocksDBFeatures.java 4.16% <0.00%> (-83.34%) ⬇️
...pache/hugegraph/backend/store/raft/RaftResult.java 0.00% <0.00%> (-81.25%) ⬇️
... and 63 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@imbajin imbajin merged commit 614d471 into apache:master Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] raft模式add_peer失败
4 participants