Jason918 commented on a change in pull request #3382:
URL: https://github.com/apache/rocketmq/pull/3382#discussion_r724663282
##########
File path: store/src/main/java/org/apache/rocketmq/store/MappedFile.java
##########
@@ -288,6 +289,7 @@ public int flush(final int flushLeastPages) {
}
} catch (Throwable e) {
log.error("Error occurred when force data to disk.", e);
+ this.flushError = true;
Review comment:
> 重启之后,the
flushError就会重置了。如果中途抖动还能自动恢复,会导致一个问题。master-slave模式,主备不同步以后,主在存储恢复后又写入了数据,就会有脏数据,彻底无法同步。
Restart manually will cause too much time of service unavailable. Maybe we
should deal with this master-slave syncing problem.
--
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]