gavinchou commented on code in PR #44120:
URL: https://github.com/apache/doris/pull/44120#discussion_r1847840876


##########
cloud/src/meta-service/meta_service.cpp:
##########
@@ -1642,6 +1642,8 @@ void 
MetaServiceImpl::get_tablet_stats(::google::protobuf::RpcController* contro
 #ifdef NDEBUG
         // Force data size >= 0 to reduce the losses caused by bugs
         if (tablet_stats->data_size() < 0) tablet_stats->set_data_size(0);
+        if (tablet_stats->index_size() < 0) tablet_stats->set_index_size(0);

Review Comment:
   what is the relationship between data_size, index_size and segment_size
   do we need a separate segment_size?



##########
cloud/src/meta-service/meta_service.cpp:
##########
@@ -1642,6 +1642,8 @@ void 
MetaServiceImpl::get_tablet_stats(::google::protobuf::RpcController* contro
 #ifdef NDEBUG
         // Force data size >= 0 to reduce the losses caused by bugs
         if (tablet_stats->data_size() < 0) tablet_stats->set_data_size(0);
+        if (tablet_stats->index_size() < 0) tablet_stats->set_index_size(0);

Review Comment:
   what is the relationship between data_size, index_size and segment_size



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to