deardeng commented on code in PR #66191:
URL: https://github.com/apache/doris/pull/66191#discussion_r3852582996
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/LocalReplica.java:
##########
@@ -274,6 +281,29 @@ public int getLeftFurtherRepairCount() {
return leftFurtherRepairCount;
}
+ @Override
+ public boolean isBinlogMissing() {
+ return leftBinlogMissingCount > 0
+ && System.currentTimeMillis() < binlogMissingSetTime
+ + Config.tablet_binlog_missing_timeout_second * 1000;
+ }
+
+ @Override
+ public void setBinlogMissing(boolean binlogMissing) {
+ if (binlogMissing) {
+ binlogMissingSetTime = System.currentTimeMillis();
+ leftBinlogMissingCount = Config.tablet_binlog_missing_max_times;
+ } else {
+ leftBinlogMissingCount = 0;
+ binlogMissingSetTime = -1;
+ }
+ }
+
+ @Override
+ public void incrBinlogMissingCount() {
Review Comment:
consumeBinlogMissingRetry() or decrementBinlogMissingCount()?
--
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]