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

feat: adapt API and lorry for grpc dbplugin #7343

Open
wants to merge 29 commits into
base: feature/lorry_grpc
Choose a base branch
from

Conversation

xuriwuyun
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the size/XXL Denotes a PR that changes 1000+ lines. label May 14, 2024
@xuriwuyun xuriwuyun changed the title Feature/lorry grpc framework feat: adapt lorry for grpc dbplugin May 17, 2024
@xuriwuyun xuriwuyun changed the title feat: adapt lorry for grpc dbplugin feat: adapt API and lorry for grpc dbplugin May 17, 2024
@xuriwuyun xuriwuyun marked this pull request as ready for review May 20, 2024 02:17
@xuriwuyun xuriwuyun requested a review from nayutah as a code owner May 20, 2024 02:17
req.NewMemberIp = member.PodIP
}

_, err := mgr.dbClient.JoinMember(ctx, req)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The leader name may not be the real leader. And, for many databases, a replica 'join' the cluster by accessing a HA component, bot by accessing leader. ETCD and Zookeeper joins by accessing the leader, while TiDB joins by accessing PD.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is important to note that there may be latency in updating and obtaining the correct leader name. here lorry make its best effort to provide the available information, and the action implement should make a double check. If the provided information is not sufficient, the action implementation should consider obtaining additional information through alternative means such as service reference, and variables.

// This field cannot be updated.
//
// +optional
GRPC *GRPCAction `json:"grpc,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

As a provider, how do I know what services need to be implemented?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

en, this is the problem, and other handlers have. To ensure clarity, it is essential to explicitly address this concern at the action level in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL Denotes a PR that changes 1000+ lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants