This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 01f86873788 branch-3.0: [fix](report) report queue size based on the
number of Bes and config #46190 (#47197)
01f86873788 is described below
commit 01f868737887fa02cc209d4bc54ecffbc0058fc5
Author: deardeng <[email protected]>
AuthorDate: Tue Mar 25 11:07:36 2025 +0800
branch-3.0: [fix](report) report queue size based on the number of Bes and
config #46190 (#47197)
cherry pick from #46190
---
.../src/main/java/org/apache/doris/master/ReportHandler.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java
b/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java
index e104ed288b3..a6a81d6efe3 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java
@@ -233,11 +233,13 @@ public class ReportHandler extends Daemon {
private void putToQueue(ReportTask reportTask) throws Exception {
int currentSize = reportQueue.size();
- if (currentSize > Config.report_queue_size) {
- LOG.warn("the report queue size exceeds the limit: {}. current:
{}", Config.report_queue_size, currentSize);
+ int maxReportQueueSize = Math.max(Config.report_queue_size,
+ 10 * Env.getCurrentSystemInfo().getAllBackendIds().size());
+ if (currentSize > maxReportQueueSize) {
+ LOG.warn("the report queue size exceeds the limit: {}. current:
{}", maxReportQueueSize, currentSize);
throw new Exception(
"the report queue size exceeds the limit: "
- + Config.report_queue_size + ". current: " +
currentSize);
+ + maxReportQueueSize + ". current: " +
currentSize);
}
BackendReportType backendReportType = new
BackendReportType(reportTask.beId, reportTask.reportType);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]