test: add msg and refresh for coverage test#3413
test: add msg and refresh for coverage test#3413vagetablechicken wants to merge 10 commits intomainfrom
Conversation
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
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
| ASSERT_TRUE(cs->GetNsClient()->DropTable("test2", "trans", msg)) << msg; | ||
| ASSERT_TRUE(sr->RefreshCatalog()); // avoid cache in sdk | ||
| // helpful for debug | ||
| // TODO if refresh is not good, sleep more |
There was a problem hiding this comment.
[cpplint] reported by reviewdog 🐶
Missing username in TODO; it should look like "// TODO(my_username): Stuff." [readability/todo] [2]
| 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.
[cpplint] reported by reviewdog 🐶
Missing space before ( in if( [whitespace/parens] [5]
| HandleSQL("use test2;"); | ||
| HandleSQL(create_sql); | ||
| sleep(5); | ||
| // TODO if refresh is not good, sleep more |
There was a problem hiding this comment.
[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
| 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.
[cpplint] reported by reviewdog 🐶
At least two spaces is best between code and comments [whitespace/comments] [2]
| 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.
[cpplint] reported by reviewdog 🐶
Lines should be <= 120 characters long [whitespace/line_length] [2]
| 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.
[cpplint] reported by reviewdog 🐶
Lines should be <= 120 characters long [whitespace/line_length] [2]
| 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.
[cpplint] reported by reviewdog 🐶
Lines should be <= 120 characters long [whitespace/line_length] [2]
No description provided.