提交 b3ba2668 编写于 作者: D dongeforever

Fix os pache cache busy problem

上级 cc3f9f3b
......@@ -783,6 +783,15 @@ public class BrokerController {
this.filterServerManager.start();
}
if (messageStoreConfig.isEnableDLegerCommitLog()) {
changeToSlave();
} else {
startProcessorByHa();
handleSlaveSynchronize(messageStoreConfig.getBrokerRole());
}
this.registerBrokerAll(true, false, true);
this.scheduledExecutorService.scheduleAtFixedRate(new Runnable() {
......@@ -805,10 +814,7 @@ public class BrokerController {
this.brokerFastFailure.start();
}
if (!messageStoreConfig.isEnableDLegerCommitLog()) {
startProcessorByHa();
handleSlaveSynchronize(messageStoreConfig.getBrokerRole());
}
}
public synchronized void registerIncrementBrokerData(TopicConfig topicConfig, DataVersion dataVersion) {
......
......@@ -345,6 +345,7 @@ public class DLegerCommitLog extends CommitLog {
log.error("Put message error", e);
appendResult = new AppendMessageResult(AppendMessageStatus.UNKNOWN_ERROR);
} finally {
beginTimeInLock = 0;
putMessageLock.unlock();
}
......@@ -352,7 +353,6 @@ public class DLegerCommitLog extends CommitLog {
log.warn("[NOTIFYME]putMessage in lock cost time(ms)={}, bodyLength={} AppendMessageResult={}", eclipseTimeInLock, msg.getBody().length, appendResult);
}
if (dlegerFuture != null) {
try {
AppendEntryResponse appendEntryResponse = dlegerFuture.get(3, TimeUnit.SECONDS);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册