-
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 all 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 @@ | |
::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 all by rpc without tid"; | ||
RefreshTableInfo(); | ||
} | ||
} | ||
} | ||
|
@@ -5222,7 +5227,8 @@ | |
if (sp_cache_->ProcedureExist(db_name, sp_name)) { | ||
response->set_code(::openmldb::base::ReturnCode::kProcedureAlreadyExists); | ||
response->set_msg("store procedure already exists"); | ||
PDLOG(WARNING, "store procedure[%s] already exists in db[%s]", sp_name.c_str(), db_name.c_str()); | ||
// print endpoint for ut debug | ||
PDLOG(WARNING, "store procedure[%s] already exists in db[%s] on %s", sp_name.c_str(), db_name.c_str(), endpoint_.c_str()); | ||
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 🐶 |
||
return; | ||
} | ||
::hybridse::base::Status status; | ||
|
@@ -5283,7 +5289,7 @@ | |
|
||
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,7 +5317,7 @@ | |
} | ||
response->set_code(::openmldb::base::ReturnCode::kOk); | ||
response->set_msg("ok"); | ||
PDLOG(INFO, "drop procedure success. db_name[%s] sp_name[%s]", db_name.c_str(), sp_name.c_str()); | ||
PDLOG(INFO, "drop procedure success. db_name[%s] sp_name[%s] on %s", db_name.c_str(), sp_name.c_str(), endpoint_.c_str()); | ||
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::RunRequestQuery(RpcController* ctrl, const openmldb::api::QueryRequest& request, | ||
|
@@ -5395,7 +5401,7 @@ | |
} | ||
sp_cache_->InsertSQLProcedureCacheEntry(db_name, sp_name, sp_info, session.GetCompileInfo(), | ||
batch_session.GetCompileInfo()); | ||
|
||
// only called by RefreshTableInfo | ||
LOG(INFO) << "refresh procedure success! sp_name: " << sp_name << ", db: " << db_name << ", sql: " << sql; | ||
} | ||
|
||
|
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]