mymeiyi commented on code in PR #48267:
URL: https://github.com/apache/doris/pull/48267#discussion_r1969580009
##########
fe/fe-core/src/main/java/org/apache/doris/cloud/transaction/CloudGlobalTransactionMgr.java:
##########
@@ -1316,10 +1401,28 @@ private void afterCommitTransaction(List<Table>
tableList) {
public boolean commitAndPublishTransaction(DatabaseIf db, List<Table>
tableList, long transactionId,
List<TabletCommitInfo>
tabletCommitInfos, long timeoutMillis,
TxnCommitAttachment
txnCommitAttachment) throws UserException {
+ StopWatch stopWatch = new StopWatch();
+ stopWatch.start();
beforeCommitTransaction(tableList, transactionId, timeoutMillis);
try {
commitTransaction(db.getId(), tableList, transactionId,
tabletCommitInfos, txnCommitAttachment);
} finally {
+ stopWatch.stop();
+ String detailMsg = "";
+ if (!commitCostTimeStatisticMap.containsKey(transactionId)) {
+ StringBuilder sb = new StringBuilder();
+ CommitCostTimeStatistic statistic =
commitCostTimeStatisticMap.get(transactionId);
+ sb.append("get commit lock cost
").append(statistic.getWaitCommitLockCostTimeMs())
+ .append(" ms, get delete bitmap lock cost ")
+ .append(statistic.getWaitDeleteBitmapLockCostTimeMs())
+ .append(" ms, calculate delete bitmap cost ")
+
.append(statistic.getCalculateDeleteBitmapCostTimeMs()).append(" ms, commit to
ms cost ")
+ .append(statistic.getCommitToMsCostTimeMs()).append("
ms");
+ detailMsg = sb.toString();
+ }
+ LOG.info(
Review Comment:
also print table_id
--
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]