dataroaring commented on code in PR #62060:
URL: https://github.com/apache/doris/pull/62060#discussion_r3092937584
##########
fe/fe-core/src/main/java/org/apache/doris/persist/EditLog.java:
##########
@@ -1558,6 +1558,12 @@ private <T extends Writable> void logEdit(short op,
List<T> entries) throws IOEx
journal.write(batch);
}
txId += entries.size();
+ if (txId >= Config.edit_log_roll_num) {
+ LOG.info("txId {} is equal to or larger than edit_log_roll_num {},
will roll edit.",
+ txId, Config.edit_log_roll_num);
+ rollEditLog();
+ txId = 0;
Review Comment:
Good catch. Fixed in cd227c23bbb — changed `txId = 0` to `txId %=
Config.edit_log_roll_num` so the remainder is preserved when a bulk write
overshoots the threshold. — ThinkOps 🤖
--
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]