-
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?
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3413 +/- ##
============================================
+ Coverage 75.33% 75.34% +0.01%
Complexity 414 414
============================================
Files 707 707
Lines 128428 128442 +14
Branches 1191 1191
============================================
+ Hits 96751 96775 +24
+ Misses 31436 31426 -10
Partials 241 241
☔ View full report in Codecov by Sentry. |
SDK Test Report 98 files ±0 98 suites ±0 1m 58s ⏱️ -29s Results for commit 4159695. ± Comparison against base commit 1b8d596. This pull request removes 30 and adds 9 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
src/cmd/sql_cmd_test.cc
Outdated
// helpful for debug | ||
// TODO if refresh is not good, sleep more |
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]
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Missing space before ( in if( [whitespace/parens] [5]
@@ -2998,8 +2998,12 @@ TEST_P(DBSDKTest, LongWindowsCleanup) { | |||
HandleSQL("create database test2;"); | |||
HandleSQL("use test2;"); | |||
HandleSQL(create_sql); | |||
sleep(5); | |||
// TODO if refresh is not good, sleep more |
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]
src/tablet/tablet_impl.cc
Outdated
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
At least two spaces is best between code and comments [whitespace/comments] [2]
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Lines should be <= 120 characters long [whitespace/line_length] [2]
@@ -5222,7 +5227,8 @@ void TabletImpl::CreateProcedure(RpcController* controller, const openmldb::api: | |||
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 comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Lines should be <= 120 characters long [whitespace/line_length] [2]
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Lines should be <= 120 characters long [whitespace/line_length] [2]
No description provided.