morningman commented on a change in pull request #6321:
URL: https://github.com/apache/incubator-doris/pull/6321#discussion_r676120836
##########
File path: be/src/olap/tablet_manager.cpp
##########
@@ -562,13 +562,22 @@ OLAPStatus TabletManager::_drop_tablet_unlocked(TTabletId
tablet_id, SchemaHash
OLAPStatus TabletManager::drop_tablets_on_error_root_path(
const std::vector<TabletInfo>& tablet_info_vec) {
OLAPStatus res = OLAP_SUCCESS;
- for (int32 i = 0; i < _tablets_shards_size; i++) {
+ if (tablet_info_vec.empty()) { // This is a high probability event
+ LOG(INFO) << "tablet_info_vec is empty, return directly.";
Review comment:
I think this log can be removed?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]