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

keyspacepb #952

Merged
merged 10 commits into from
Aug 5, 2022
Merged

keyspacepb #952

merged 10 commits into from
Aug 5, 2022

Conversation

AmoebaProtozoa
Copy link
Contributor

@AmoebaProtozoa AmoebaProtozoa commented Jun 30, 2022

ref issue: tikv/pd#5293

Signed-off-by: David <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: David <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: David <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: David <8039876+AmoebaProtozoa@users.noreply.github.com>
Signed-off-by: David <8039876+AmoebaProtozoa@users.noreply.github.com>
proto/keyspacepb.proto Outdated Show resolved Hide resolved
Signed-off-by: David <8039876+AmoebaProtozoa@users.noreply.github.com>
@AmoebaProtozoa AmoebaProtozoa changed the title [WIP] keyspacepb keyspacepb Jul 18, 2022
@AmoebaProtozoa AmoebaProtozoa marked this pull request as ready for review July 18, 2022 08:51
proto/keyspacepb.proto Outdated Show resolved Hide resolved
Signed-off-by: David <8039876+AmoebaProtozoa@users.noreply.github.com>
@disksing disksing requested a review from ystaticy July 25, 2022 04:27
option java_package = "org.tikv.kvproto";

// Keyspace provides services to manage keyspaces.
service Keyspace {
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that service is readonly. I wonder how can we create/update/delete keyspaces?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Create/ UpdateState/ UpdateConfig can be done through HTTP API.

Copy link
Member

Choose a reason for hiding this comment

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

the client should create a keyspace via HTTP?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Target Keyspace should exist prior to client's connection.
A default keyspace with name "DEFAULT" and id 0 is created when KeyspaceManager initialize, if a client (with keyspace enabled) does not provide a keyspace name, if will connect to default keyspace.

Copy link
Member

@nolouch nolouch left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@AndreMouche AndreMouche left a comment

Choose a reason for hiding this comment

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

Rest LGTM

KeyspaceMeta keyspace = 2;
}

message WatchKeyspacesRequest {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we need to watch all key-spaces?

Copy link
Contributor

@AndreMouche AndreMouche left a comment

Choose a reason for hiding this comment

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

LGTM

@nolouch
Copy link
Member

nolouch commented Aug 5, 2022

/merge

@nolouch
Copy link
Member

nolouch commented Aug 5, 2022

/merge

@nolouch nolouch merged commit ab1ee4d into pingcap:master Aug 5, 2022
@AmoebaProtozoa AmoebaProtozoa deleted the keyspace branch August 7, 2022 06:06
iosmanthus pushed a commit to iosmanthus/kvproto that referenced this pull request Oct 1, 2022
* added keyspacepb

Signed-off-by: David <8039876+AmoebaProtozoa@users.noreply.github.com>
iosmanthus pushed a commit to iosmanthus/kvproto that referenced this pull request Oct 1, 2022
* added keyspacepb

Signed-off-by: David <8039876+AmoebaProtozoa@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.

5 participants