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

V0.8.0 #67

Merged
merged 5 commits into from
Sep 18, 2021
Merged

V0.8.0 #67

merged 5 commits into from
Sep 18, 2021

Conversation

MegaByte875
Copy link
Contributor

No description provided.

@kqzh
Copy link
Contributor

kqzh commented Sep 17, 2021

do we need update README and other doc's nebula version to 2.5.0?

@veezhang veezhang added the ready-for-testing Progress: ready for the CI test label Sep 17, 2021
@@ -118,7 +118,7 @@ func (m *metaClient) GetSpace(spaceName string) (*meta.SpaceItem, error) {
if err != nil {
return nil, err
}
if resp.Code != meta.ErrorCode_SUCCEEDED {
if resp.Code != nebula.ErrorCode_E_DISCONNECTED {
Copy link
Contributor

Choose a reason for hiding this comment

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

ErrorCode_E_DISCONNECTED = > ErrorCode_SUCCEEDED ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Comment on lines -128 to -143
leader := fmt.Sprintf("%s:%v", resp.Result_.FailedParts[0].Leader.Host, resp.Result_.FailedParts[0].Leader.Port)
if err := s.updateClient(leader); err != nil {
return err
}
resp, err := s.client.TransLeader(req)
if err != nil {
log.Error(err, "TransLeader failed")
return err
}
log.Info("TransLeader returned")
if len(resp.Result_.FailedParts) > 0 {
return errors.Errorf("Trans leader failed")
}
return nil
} else if resp.Result_.FailedParts[0].Code == storage.ErrorCode_E_LEADER_CHANGED {
return errors.Errorf("leader changed, please request to leader")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove the logic about ErrorCode_E_LEADER_CHANGED ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These codes are unused

Copy link
Contributor

@veezhang veezhang left a comment

Choose a reason for hiding this comment

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

LGTM

@veezhang veezhang merged commit a87d229 into vesoft-inc:v0.8.0 Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing Progress: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants