Skip to content

Commit

Permalink
[improve](log) sync_tablet_rowsets show tablet_id
Browse files Browse the repository at this point in the history
  • Loading branch information
mymeiyi committed Jan 17, 2025
1 parent fc1f683 commit cdc9209
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions be/src/cloud/cloud_meta_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,13 @@ Status CloudMetaMgr::sync_tablet_rowsets(CloudTablet* tablet, bool warmup_delta_
return Status::InternalError("failed to get rowset meta: {}", resp.status().msg());
}
if (latency > 100 * 1000) { // 100ms
LOG(INFO) << "finish get_rowset rpc. rowset_meta.size()=" << resp.rowset_meta().size()
LOG(INFO) << "finish get_rowset rpc. tablet_id=" << tablet_id
<< ", rowset_meta.size()=" << resp.rowset_meta().size()
<< ", latency=" << latency << "us";
} else {
LOG_EVERY_N(INFO, 100)
<< "finish get_rowset rpc. rowset_meta.size()=" << resp.rowset_meta().size()
<< ", latency=" << latency << "us";
LOG_EVERY_N(INFO, 100) << "finish get_rowset rpc. tablet_id=" << tablet
<< ", rowset_meta.size()=" << resp.rowset_meta().size()
<< ", latency=" << latency << "us";
}

int64_t now = duration_cast<seconds>(system_clock::now().time_since_epoch()).count();
Expand Down

0 comments on commit cdc9209

Please sign in to comment.