Uh oh!
There was an error while loading. Please reload this page.
[Enhancement](MS) Add fix tablet data size api for meta service - #41782
Conversation
doris-robot
commented
Oct 14, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Yukang-Lian
commented
Oct 14, 2024
run buildall |
17f8700 to
bd799efCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| return {code, std::move(msg)}; | ||
| } | ||
| MetaServiceResponseStatus MetaServiceImpl::fix_tablet_stats(std::string cloud_unique_id_str, |
There was a problem hiding this comment.
warning: function 'fix_tablet_stats' has cognitive complexity of 53 (threshold 50) [readability-function-cognitive-complexity]
MetaServiceResponseStatus MetaServiceImpl::fix_tablet_stats(std::string cloud_unique_id_str,
^Additional context
cloud/src/meta-service/meta_service.cpp:2200: +1, including nesting penalty of 0, nesting level increased to 1
} catch (...) {
^cloud/src/meta-service/meta_service.cpp:2207: +1, including nesting penalty of 0, nesting level increased to 1
if (instance_id.empty()) {
^cloud/src/meta-service/meta_service.cpp:2218: +1, including nesting penalty of 0, nesting level increased to 1
if (err != TxnErrorCode::TXN_OK) {
^cloud/src/meta-service/meta_service.cpp:2236: +1, including nesting penalty of 0, nesting level increased to 1
do {
^cloud/src/meta-service/meta_service.cpp:2238: +2, including nesting penalty of 1, nesting level increased to 2
if (err != TxnErrorCode::TXN_OK) {
^cloud/src/meta-service/meta_service.cpp:2244: +2, including nesting penalty of 1, nesting level increased to 2
while (it->has_next()) {
^cloud/src/meta-service/meta_service.cpp:2251: +3, including nesting penalty of 2, nesting level increased to 3
if (out.size() == 7) {
^cloud/src/meta-service/meta_service.cpp:2268: +4, including nesting penalty of 3, nesting level increased to 4
if (code != MetaServiceCode::OK) {
^cloud/src/meta-service/meta_service.cpp:2291: +4, including nesting penalty of 3, nesting level increased to 4
if (!tablet_stat.SerializeToString(&tablet_stat_value)) {
^cloud/src/meta-service/meta_service.cpp:2324: +4, including nesting penalty of 3, nesting level increased to 4
if (err != TxnErrorCode::TXN_OK) {
^cloud/src/meta-service/meta_service.cpp:2338: +4, including nesting penalty of 3, nesting level increased to 4
if (tablet_stat_check.DebugString() != tablet_stat.DebugString()) {
^cloud/src/meta-service/meta_service.cpp:2349: +4, including nesting penalty of 3, nesting level increased to 4
if (err != TxnErrorCode::TXN_OK) {
^cloud/src/meta-service/meta_service.cpp:2358: +4, including nesting penalty of 3, nesting level increased to 4
if (tablet_stat_data_size_value.size() != sizeof(tablet_stat_data_size_check))
^cloud/src/meta-service/meta_service.cpp:2368: +4, including nesting penalty of 3, nesting level increased to 4
ifconstexpr (std::endian::native == std::endian::big) {
^cloud/src/meta-service/meta_service.cpp:2375: +4, including nesting penalty of 3, nesting level increased to 4
if (tablet_stat_data_size_check != tablet_stat_data_size) {
^cloud/src/meta-service/meta_service.cpp:2385: +3, including nesting penalty of 2, nesting level increased to 3
if (sub_txn_id % 50 == 0) {
^cloud/src/meta-service/meta_service.cpp:2387: +4, including nesting penalty of 3, nesting level increased to 4
if (err != TxnErrorCode::TXN_OK) {
^cloud/src/meta-service/meta_service.cpp:2393: +1, nesting level increased to 4
} else {
^cloud/src/meta-service/meta_service.cpp:2405: +1, including nesting penalty of 0, nesting level increased to 1
if (err != TxnErrorCode::TXN_OK) {
^cloud/src/meta-service/meta_service.cpp:2413: +1, nesting level increased to 1
} else {
^| return {code, std::move(msg)}; | ||
| } | ||
| MetaServiceResponseStatus MetaServiceImpl::fix_tablet_stats(std::string cloud_unique_id_str, |
There was a problem hiding this comment.
warning: function 'fix_tablet_stats' exceeds recommended size/complexity thresholds [readability-function-size]
MetaServiceResponseStatus MetaServiceImpl::fix_tablet_stats(std::string cloud_unique_id_str,
^Additional context
cloud/src/meta-service/meta_service.cpp:2190: 231 lines including whitespace and comments (threshold 80)
MetaServiceResponseStatus MetaServiceImpl::fix_tablet_stats(std::string cloud_unique_id_str,
^Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| return {code, std::move(msg)}; | ||
| } | ||
| MetaServiceResponseStatus MetaServiceImpl::fix_tablet_stats(std::string cloud_unique_id_str, |
There was a problem hiding this comment.
warning: function 'fix_tablet_stats' exceeds recommended size/complexity thresholds [readability-function-size]
MetaServiceResponseStatus MetaServiceImpl::fix_tablet_stats(std::string cloud_unique_id_str,
^Additional context
cloud/src/meta-service/meta_service.cpp:2190: 335 lines including whitespace and comments (threshold 80)
MetaServiceResponseStatus MetaServiceImpl::fix_tablet_stats(std::string cloud_unique_id_str,
^| @@ -18,10 +18,17 @@ | |||
| #include "meta-service/meta_service_tablet_stats.h" | |||
There was a problem hiding this comment.
warning: 'meta-service/meta_service_tablet_stats.h' file not found [clang-diagnostic-error]
#include"meta-service/meta_service_tablet_stats.h"
^| @@ -19,6 +19,8 @@ | |||
| #include <gen_cpp/cloud.pb.h> | |||
There was a problem hiding this comment.
warning: 'gen_cpp/cloud.pb.h' file not found [clang-diagnostic-error]
#include<gen_cpp/cloud.pb.h>
^Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
63eb9a8 to
a745f7eCompare| return st; | ||
| } | ||
| MetaServiceResponseStatus fix_tablet_stats_internal( |
There was a problem hiding this comment.
warning: function 'fix_tablet_stats_internal' exceeds recommended size/complexity thresholds [readability-function-size]
MetaServiceResponseStatus fix_tablet_stats_internal(
^Additional context
cloud/src/meta-service/meta_service_tablet_stats.cpp:196: 104 lines including whitespace and comments (threshold 80)
MetaServiceResponseStatus fix_tablet_stats_internal(
^2d305ac to
fa2095aCompareYukang-Lian
commented
Oct 28, 2024
run buildall |
| return st; | ||
| } | ||
| MetaServiceResponseStatus fix_tablet_stats_internal( |
There was a problem hiding this comment.
warning: function 'fix_tablet_stats_internal' exceeds recommended size/complexity thresholds [readability-function-size]
MetaServiceResponseStatus fix_tablet_stats_internal(
^Additional context
cloud/src/meta-service/meta_service_tablet_stats.cpp:196: 126 lines including whitespace and comments (threshold 80)
MetaServiceResponseStatus fix_tablet_stats_internal(
^doris-robot
commented
Oct 28, 2024
TeamCity be ut coverage result: |
Yukang-Lian
commented
Oct 28, 2024
run cloud_p0 |
Yukang-Lian
commented
Oct 28, 2024
run buildall |
doris-robot
commented
Oct 28, 2024
TeamCity be ut coverage result: |
a0029ff to
f125f11CompareYukang-Lian
commented
Oct 29, 2024
run buildall |
| return st; | ||
| } | ||
| MetaServiceResponseStatus fix_tablet_stats_internal( |
There was a problem hiding this comment.
warning: function 'fix_tablet_stats_internal' exceeds recommended size/complexity thresholds [readability-function-size]
MetaServiceResponseStatus fix_tablet_stats_internal(
^Additional context
cloud/src/meta-service/meta_service_tablet_stats.cpp:196: 125 lines including whitespace and comments (threshold 80)
MetaServiceResponseStatus fix_tablet_stats_internal(
^doris-robot
commented
Oct 29, 2024
TeamCity be ut coverage result: |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
Proposed changes
Issue Number: close #xxx