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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to