Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](mtmv)add log for resolve pending task #29078

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,12 @@ public void schedulerInstantJob(T job, TaskType taskType, C context) {
}
return;
}
tasks.forEach(task -> taskDisruptorGroupManager.dispatchInstantTask(task, job.getJobType(),
job.getJobConfig()));

tasks.forEach(task -> {
taskDisruptorGroupManager.dispatchInstantTask(task, job.getJobType(),
job.getJobConfig());
log.info("dispatch instant job, job id is {}, job name is {}, task id is {}", job.getJobId(),
job.getJobName(), task.getTaskId());
});
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ class Suite implements GroovyInterceptable {

void waitingMTMVTaskFinished(String jobName) {
Thread.sleep(2000);
String showTasks = "select Status from tasks('type'='mv') where JobName = '${jobName}'"
String showTasks = "select TaskId,JobId,JobName,MvId,Status from tasks('type'='mv') where JobName = '${jobName}'"
String status = "NULL"
List<List<Object>> result
long startTime = System.currentTimeMillis()
Expand All @@ -854,7 +854,7 @@ class Suite implements GroovyInterceptable {
result = sql(showTasks)
logger.info("result: " + result.toString())
if (!result.isEmpty()) {
status = result.last().get(0)
status = result.last().get(4)
}
logger.info("The state of ${showTasks} is ${status}")
Thread.sleep(1000);
Expand Down
Loading