-
Notifications
You must be signed in to change notification settings - Fork 322
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
test: add msg and refresh for coverage test #3413
base: main
Are you sure you want to change the base?
Changes from 3 commits
5f58f70
a0c3658
a92aa00
2245adb
acea6a6
d6bb1d3
c072f50
f9baf0a
20460e2
4159695
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -553,8 +553,13 @@ void TabletImpl::Refresh(RpcController* controller, const ::openmldb::api::Refre | |
::openmldb::api::GeneralResponse* response, Closure* done) { | ||
brpc::ClosureGuard done_guard(done); | ||
if (IsClusterMode()) { | ||
if (RefreshSingleTable(request->tid())) { | ||
PDLOG(INFO, "refresh success. tid %u", request->tid()); | ||
if(request->has_tid()) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cpplint] reported by reviewdog 🐶 |
||
if (RefreshSingleTable(request->tid())) { | ||
PDLOG(INFO, "refresh success. tid %u", request->tid()); | ||
} | ||
} else { | ||
LOG(INFO) << "refresh table info by RefreshRequest without tid"; | ||
RefreshTableInfo(); | ||
} | ||
} | ||
} | ||
|
@@ -5219,6 +5224,7 @@ void TabletImpl::CreateProcedure(RpcController* controller, const openmldb::api: | |
const std::string& db_name = sp_info.db_name(); | ||
const std::string& sp_name = sp_info.sp_name(); | ||
const std::string& sql = sp_info.sql(); | ||
LOG(INFO) << "create procedure rpc in " << endpoint_; // no get size func << " with sp cache " << sp_cache_-> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cpplint] reported by reviewdog 🐶 |
||
if (sp_cache_->ProcedureExist(db_name, sp_name)) { | ||
response->set_code(::openmldb::base::ReturnCode::kProcedureAlreadyExists); | ||
response->set_msg("store procedure already exists"); | ||
|
@@ -5283,7 +5289,7 @@ void TabletImpl::CreateProcedure(RpcController* controller, const openmldb::api: | |
|
||
response->set_code(::openmldb::base::ReturnCode::kOk); | ||
response->set_msg("ok"); | ||
LOG(INFO) << "create procedure success! sp_name: " << sp_name << ", db: " << db_name << ", sql: " << sql; | ||
LOG(INFO) << "create procedure success! sp_name: " << sp_name << ", db: " << db_name << ", sql: " << sql << " on " << endpoint_; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cpplint] reported by reviewdog 🐶 |
||
} | ||
|
||
void TabletImpl::DropProcedure(RpcController* controller, const ::openmldb::api::DropProcedureRequest* request, | ||
|
@@ -5311,6 +5317,7 @@ void TabletImpl::DropProcedure(RpcController* controller, const ::openmldb::api: | |
} | ||
response->set_code(::openmldb::base::ReturnCode::kOk); | ||
response->set_msg("ok"); | ||
LOG(INFO) << "drop succ in " << endpoint_; | ||
PDLOG(INFO, "drop procedure success. db_name[%s] sp_name[%s]", db_name.c_str(), sp_name.c_str()); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Missing username in TODO; it should look like "// TODO(my_username): Stuff." [readability/todo] [2]