dataroaring commented on code in PR #39987:
URL: https://github.com/apache/doris/pull/39987#discussion_r1732536703
##########
fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java:
##########
@@ -523,6 +523,16 @@ private void prepareAndSendSnapshotTask() {
}
}
+ // Limit the max num of tablets involved in a backup job, to avoid OOM.
+ if (unfinishedTaskIds.size() > Config.max_backup_tablets_per_job) {
+ String msg = String.format("the num involved tablets %d exceeds
the limit %d"
+ + "change config `max_backup_tablets_per_job` to change
this limitation",
+ unfinishedTaskIds.size(),
Config.max_backup_tablets_per_job);
Review Comment:
Please provide users a fe oom hint.
--
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]