未验证 提交 580037fc 编写于 作者: H Heng Du 提交者: GitHub

Merge pull request #742 from Aaron-He/develop

[ISSUE #731] Change log level in TransactionalMessageServiceImpl
...@@ -100,7 +100,7 @@ public class TransactionalMessageServiceImpl implements TransactionalMessageServ ...@@ -100,7 +100,7 @@ public class TransactionalMessageServiceImpl implements TransactionalMessageServ
msgExt.setCommitLogOffset( msgExt.setCommitLogOffset(
putMessageResult.getAppendMessageResult().getWroteOffset()); putMessageResult.getAppendMessageResult().getWroteOffset());
msgExt.setMsgId(putMessageResult.getAppendMessageResult().getMsgId()); msgExt.setMsgId(putMessageResult.getAppendMessageResult().getMsgId());
log.info( log.debug(
"Send check message, the offset={} restored in queueOffset={} " "Send check message, the offset={} restored in queueOffset={} "
+ "commitLogOffset={} " + "commitLogOffset={} "
+ "newMsgId={} realMsgId={} topic={}", + "newMsgId={} realMsgId={} topic={}",
...@@ -127,7 +127,7 @@ public class TransactionalMessageServiceImpl implements TransactionalMessageServ ...@@ -127,7 +127,7 @@ public class TransactionalMessageServiceImpl implements TransactionalMessageServ
log.warn("The queue of topic is empty :" + topic); log.warn("The queue of topic is empty :" + topic);
return; return;
} }
log.info("Check topic={}, queues={}", topic, msgQueues); log.debug("Check topic={}, queues={}", topic, msgQueues);
for (MessageQueue messageQueue : msgQueues) { for (MessageQueue messageQueue : msgQueues) {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();
MessageQueue opQueue = getOpQueue(messageQueue); MessageQueue opQueue = getOpQueue(messageQueue);
...@@ -168,7 +168,7 @@ public class TransactionalMessageServiceImpl implements TransactionalMessageServ ...@@ -168,7 +168,7 @@ public class TransactionalMessageServiceImpl implements TransactionalMessageServ
break; break;
} }
if (getResult.getPullResult().getPullStatus() == PullStatus.NO_NEW_MSG) { if (getResult.getPullResult().getPullStatus() == PullStatus.NO_NEW_MSG) {
log.info("No new msg, the miss offset={} in={}, continue check={}, pull result={}", i, log.debug("No new msg, the miss offset={} in={}, continue check={}, pull result={}", i,
messageQueue, getMessageNullCount, getResult.getPullResult()); messageQueue, getMessageNullCount, getResult.getPullResult());
break; break;
} else { } else {
...@@ -187,7 +187,7 @@ public class TransactionalMessageServiceImpl implements TransactionalMessageServ ...@@ -187,7 +187,7 @@ public class TransactionalMessageServiceImpl implements TransactionalMessageServ
continue; continue;
} }
if (msgExt.getStoreTimestamp() >= startTime) { if (msgExt.getStoreTimestamp() >= startTime) {
log.info("Fresh stored. the miss offset={}, check it later, store={}", i, log.debug("Fresh stored. the miss offset={}, check it later, store={}", i,
new Date(msgExt.getStoreTimestamp())); new Date(msgExt.getStoreTimestamp()));
break; break;
} }
...@@ -206,7 +206,7 @@ public class TransactionalMessageServiceImpl implements TransactionalMessageServ ...@@ -206,7 +206,7 @@ public class TransactionalMessageServiceImpl implements TransactionalMessageServ
} }
} else { } else {
if ((0 <= valueOfCurrentMinusBorn) && (valueOfCurrentMinusBorn < checkImmunityTime)) { if ((0 <= valueOfCurrentMinusBorn) && (valueOfCurrentMinusBorn < checkImmunityTime)) {
log.info("New arrived, the miss offset={}, check it later checkImmunity={}, born={}", i, log.debug("New arrived, the miss offset={}, check it later checkImmunity={}, born={}", i,
checkImmunityTime, new Date(msgExt.getBornTimestamp())); checkImmunityTime, new Date(msgExt.getBornTimestamp()));
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册