提交 9d76ea92 编写于 作者: Q qinliujie 提交者: yukon

MASTER [ROCKETMQ-33] Resolve cpu occupy 100% issue in...

MASTER [ROCKETMQ-33] Resolve cpu occupy 100% issue in GroupCommitService/HAService, closes apache/incubator-rocketmq#31
上级 55d73e18
......@@ -1045,7 +1045,7 @@ public class CommitLog {
while (!this.isStopped()) {
try {
this.waitForRunning(0);
this.waitForRunning(10);
this.doCommit();
} catch (Exception e) {
CommitLog.log.warn(this.getServiceName() + " service has exception. ", e);
......
......@@ -297,7 +297,7 @@ public class HAService {
while (!this.isStopped()) {
try {
this.waitForRunning(0);
this.waitForRunning(10);
this.doWaitTransfer();
} catch (Exception e) {
log.warn(this.getServiceName() + " service has exception. ", e);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册