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

Support learner in raft #444

Merged
merged 5 commits into from
Jul 23, 2019
Merged

Support learner in raft #444

merged 5 commits into from
Jul 23, 2019

Conversation

dangleptr
Copy link
Contributor

@dangleptr dangleptr commented May 27, 2019

@dangleptr dangleptr requested review from sherman-the-tank and dutor and removed request for sherman-the-tank May 27, 2019 10:11
@dangleptr dangleptr added the ready-for-testing PR: ready for the CI test label May 27, 2019
@dangleptr
Copy link
Contributor Author

Jenkins go

@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

@dangleptr dangleptr added do not review PR: not ready for the code review yet and removed ready-for-testing PR: ready for the CI test labels Jun 28, 2019
@dangleptr
Copy link
Contributor Author

It should be based on #552
Let's wait for it.

@dangleptr dangleptr added this to the v1_beta_release milestone Jun 28, 2019
@dangleptr dangleptr requested a review from critical27 July 3, 2019 02:43
@dangleptr dangleptr added ready-for-testing PR: ready for the CI test and removed do not review PR: not ready for the code review yet labels Jul 16, 2019
@dangleptr
Copy link
Contributor Author

Jenkins go

@nebula-community-bot
Copy link
Member

Unit testing passed.

1 similar comment
@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing failed.

Copy link
Contributor

@critical27 critical27 left a comment

Choose a reason for hiding this comment

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

LGTM.

src/kvstore/raftex/test/TestShard.cpp Show resolved Hide resolved
@nebula-community-bot
Copy link
Member

Unit testing passed.

@dangleptr dangleptr requested a review from wadeliuyi July 18, 2019 13:49
@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

Copy link
Contributor

@critical27 critical27 left a comment

Choose a reason for hiding this comment

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

LGTM

int64_t ts = time::WallClock::fastNowInMilliSec();
encoded.append(reinterpret_cast<char*>(&ts), sizeof(int64_t));
// Log type
auto type = LogType::OP_ADD_LEARNER;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think unsigned char is better than auto

Copy link
Contributor

@wadeliuyi wadeliuyi left a comment

Choose a reason for hiding this comment

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

LGTM

@dangleptr dangleptr merged commit e69121f into vesoft-inc:master Jul 23, 2019
@dangleptr dangleptr deleted the learner branch July 23, 2019 10:31
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* Support Learner in Raft

* Remove sleep

* Fix failed storage_client_test

* Address wadeliuyi's comments
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
Reverts vesoft-inc#3548

Need reconsideration. Because the if we add hosts using heartbeat, the zone is not created

Migrated from vesoft-inc#3592

Co-authored-by: Doodle <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix occasionally failed UT after raft introduced Flakey leader_election_test
6 participants