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

server: add creating raft cluster when become leader. #97

Merged
merged 1 commit into from
May 10, 2016

Conversation

qiuyesuifeng
Copy link
Contributor

No description provided.

@siddontang
Copy link
Contributor

No check in getRaftCluster?

@siddontang
Copy link
Contributor

LGTM

@siddontang
Copy link
Contributor

PTAL @ngaut @disksing

}
if value == nil {
return nil, nil
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we return an error here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems not, if we have not bootstrapped the cluster, then the cluster value from etcd will be nil.
@siddontang Am i right?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, the raft cluster is nil if not bootstrapped.

@disksing
Copy link
Contributor

disksing commented May 9, 2016

LGTM.

@qiuyesuifeng qiuyesuifeng merged commit 48427bb into master May 10, 2016
@qiuyesuifeng qiuyesuifeng deleted the qiuyesuifeng/create-cluster branch May 10, 2016 04:44
rleungx added a commit to rleungx/pd that referenced this pull request Jun 5, 2023
* mcs: fix the members field is null (tikv#6518)

close tikv#6519

Signed-off-by: Ryan Leung <rleungx@gmail.com>

* mcs, tso: remove unnecessary "create tso forwarding stream" log on the common happy path (tikv#6524)

close tikv#6517

Remove unnecessary "create tso forwarding stream" on the common happy path

Signed-off-by: Bin Shi <binshi.bing@gmail.com>

---------

Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
Co-authored-by: Bin Shi <39923490+binshi-bing@users.noreply.github.com>
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.

3 participants