morningman commented on a change in pull request #7017:
URL: https://github.com/apache/incubator-doris/pull/7017#discussion_r743673756
##########
File path:
fe/fe-core/src/main/java/org/apache/doris/load/routineload/RoutineLoadManager.java
##########
@@ -426,7 +426,10 @@ public long getAvailableBeForTask(long previoudBeId,
String clusterName) throws
// 1. Find if the given BE id has available slots
if (previoudBeId != -1L) {
int idleTaskNum = 0;
- if (beIdToConcurrentTasks.containsKey(previoudBeId)) {
+ if (beIdToMaxConcurrentTasks.containsKey(previoudBeId)) {
+ idleTaskNum = 0;
+ LOG.warn("backend:" + previoudBeId + " not found, cannot
get idleTaskNum.");
Review comment:
No need to print warn log here because this is not a root cause.
The root cause is because BE is down. And `beIdToMaxConcurrentTasks` only
contains alive Backends.
So here we can just check if
`beIdToMaxConcurrentTasks.containsKey(previoudBeId)`
##########
File path:
fe/fe-core/src/main/java/org/apache/doris/load/routineload/RoutineLoadManager.java
##########
@@ -426,7 +426,10 @@ public long getAvailableBeForTask(long previoudBeId,
String clusterName) throws
// 1. Find if the given BE id has available slots
if (previoudBeId != -1L) {
int idleTaskNum = 0;
- if (beIdToConcurrentTasks.containsKey(previoudBeId)) {
+ if (beIdToMaxConcurrentTasks.containsKey(previoudBeId)) {
+ idleTaskNum = 0;
+ LOG.warn("backend:" + previoudBeId + " not found, cannot
get idleTaskNum.");
Review comment:
And BE crash because of this #6716. Need further debug.
--
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]