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

MetaServer support general kv storage #243

Merged
merged 23 commits into from
Apr 17, 2019
Merged

MetaServer support general kv storage #243

merged 23 commits into from
Apr 17, 2019

Conversation

darionyaphet
Copy link
Contributor

No description provided.

@nebula-community-bot
Copy link
Member

Unit testing passed.

src/meta/MetaUtils.cpp Outdated Show resolved Hide resolved
namespace meta {

void GetProcessor::process(const cpp2::GetReq& req) {
guard_ = std::make_unique<std::lock_guard<std::mutex>>(
Copy link
Contributor

Choose a reason for hiding this comment

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

I notice that you and @dangleptr used to use lock_guard like this, i.e. allocate on heap instead of on stack. Could you explain on this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

some async processor would get value after the method return.
when lock_guard allocated on stack, it's a local variable and the scope is in the method.
so we think it should allocated on the heap :)

src/interface/meta.thrift Outdated Show resolved Hide resolved
}

struct MultiPutReq {
1: list<Pair> pairs
Copy link
Contributor

Choose a reason for hiding this comment

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

For put/get, we should indicate the tableName in request.
The tableName should be kept inside key, and it should has no conflicts with system-level tables(space, hosts, edges, tags etc.)

src/kvstore/RocksdbEngine.cpp Outdated Show resolved Hide resolved
src/kvstore/RocksdbEngine.cpp Outdated Show resolved Hide resolved
src/meta/client/MetaClient.cpp Outdated Show resolved Hide resolved
src/meta/client/MetaClient.cpp Show resolved Hide resolved
src/meta/client/MetaClient.cpp Show resolved Hide resolved
src/meta/client/MetaClient.cpp Show resolved Hide resolved
src/meta/client/MetaClient.cpp Show resolved Hide resolved
@nebula-community-bot
Copy link
Member

Unit testing failed.

@nebula-community-bot
Copy link
Member

Unit testing failed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing failed.

Conflicts:
	src/meta/CMakeLists.txt
	src/meta/MetaServiceHandler.cpp
	src/meta/MetaServiceHandler.h
	src/meta/test/ProcessorTest.cpp
@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing failed.

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

Unit testing failed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

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

Unit testing passed.

Conflicts:
	src/kvstore/NebulaStore.cpp
	src/kvstore/RocksEngine.cpp
	src/meta/MetaUtils.cpp
@nebula-community-bot
Copy link
Member

Unit testing passed.

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

Unit testing passed.

dangleptr
dangleptr previously approved these changes Apr 12, 2019
Copy link
Contributor

@dangleptr dangleptr left a comment

Choose a reason for hiding this comment

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

LGTM

@nebula-community-bot
Copy link
Member

Unit testing failed.

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

Unit testing failed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

5 similar comments
@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.

@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.

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

Unit testing passed.

@@ -24,12 +24,12 @@ void RemoveTagProcessor::process(const cpp2::RemoveTagReq& req) {
}
resp_.set_code(cpp2::ErrorCode::SUCCEEDED);
LOG(INFO) << "Remove Tag " << req.get_tag_name();
doRemove(std::move(ret.value()));
doRemoves(std::move(ret.value()));
Copy link
Contributor

Choose a reason for hiding this comment

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

doMultiRemove

@nebula-community-bot
Copy link
Member

Unit testing passed.

Conflicts:
	src/meta/MetaServiceHandler.cpp
	src/meta/client/MetaClient.cpp
	src/meta/processors/BaseProcessor.h
	src/meta/processors/BaseProcessor.inl
	src/meta/processors/CreateSpaceProcessor.cpp
	src/meta/test/MetaClientTest.cpp
@nebula-community-bot
Copy link
Member

Unit testing passed.

Copy link
Contributor

@dangleptr dangleptr left a comment

Choose a reason for hiding this comment

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

Well done

@nebula-community-bot
Copy link
Member

Unit testing passed.

@darionyaphet darionyaphet merged commit 7e66387 into vesoft-inc:master Apr 17, 2019
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Feb 16, 2020
* meta server general KV storage

* enhance meta kv storage

* address dangleptr's comment
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* meta server general KV storage

* enhance meta kv storage

* address dangleptr's comment
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
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