-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BugFix] Support force cancel refresh materialized view & optimize some task run strategies #46131
[BugFix] Support force cancel refresh materialized view & optimize some task run strategies #46131
Conversation
fe/fe-core/src/main/java/com/starrocks/scheduler/persist/MVTaskRunExtraMessage.java
Show resolved
Hide resolved
a772ac9
to
a46d210
Compare
a46d210
to
42fd625
Compare
42fd625
to
ffe0fc5
Compare
ffe0fc5
to
67bb6ba
Compare
67bb6ba
to
416ac30
Compare
…rategy Signed-off-by: shuming.li <ming.moriarty@gmail.com>
f1e01fe
to
d7da531
Compare
Quality Gate passedIssues Measures |
} finally { | ||
// if it's force, remove it from running TaskRun map no matter it's killed or not | ||
if (force) { | ||
taskRunScheduler.removeRunningTask(taskRun.getTaskId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do this can help to avoid occupying resources too long?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The running queue is limited by
Conf.task_runs_concurrency
which is 4 by default. If one task run is always in the running queue, the task run scheduler can not schedule other tasks for the limit. - If the task run is in the running queue, other dependent tasks (triggerred by this task) will also not be scheduled.
@@ -2830,6 +2830,13 @@ public class Config extends ConfigBase { | |||
@ConfField(mutable = true, comment = "The default try lock timeout for mv refresh to try base table/mv dbs' lock") | |||
public static int mv_refresh_try_lock_timeout_ms = 30 * 1000; | |||
|
|||
@ConfField(mutable = true, comment = "Whether enable to refresh materialized view in sync mode mergeable or not") | |||
public static boolean enable_mv_refresh_sync_refresh_mergeable = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same prefix is better
[FE Incremental Coverage Report]✅ pass : 64 / 73 (87.67%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
@Mergifyio backport branch-3.3 |
@Mergifyio backport branch-3.2 |
@Mergifyio backport branch-3.1 |
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
…me task run strategies (#46131) Signed-off-by: shuming.li <ming.moriarty@gmail.com> (cherry picked from commit 02fb889) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/common/Config.java # fe/fe-core/src/main/java/com/starrocks/scheduler/ExecuteOption.java # fe/fe-core/src/main/java/com/starrocks/scheduler/PartitionBasedMvRefreshProcessor.java # fe/fe-core/src/main/java/com/starrocks/scheduler/persist/MVTaskRunExtraMessage.java # fe/fe-core/src/main/java/com/starrocks/scheduler/persist/TaskRunStatus.java # fe/fe-core/src/main/java/com/starrocks/server/LocalMetastore.java # fe/fe-core/src/main/java/com/starrocks/sql/optimizer/rule/transformation/materialization/MvUtils.java
…me task run strategies (#46131) Signed-off-by: shuming.li <ming.moriarty@gmail.com> (cherry picked from commit 02fb889) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/connector/CatalogConnectorMetadata.java # fe/fe-core/src/main/java/com/starrocks/scheduler/ExecuteOption.java # fe/fe-core/src/main/java/com/starrocks/scheduler/PartitionBasedMvRefreshProcessor.java # fe/fe-core/src/main/java/com/starrocks/scheduler/TaskRunManager.java # fe/fe-core/src/main/java/com/starrocks/scheduler/TaskRunScheduler.java # fe/fe-core/src/main/java/com/starrocks/scheduler/persist/MVTaskRunExtraMessage.java # fe/fe-core/src/main/java/com/starrocks/scheduler/persist/TaskRunStatus.java # fe/fe-core/src/main/java/com/starrocks/server/LocalMetastore.java # fe/fe-core/src/main/java/com/starrocks/sql/optimizer/rule/transformation/materialization/MvUtils.java # fe/fe-core/src/test/java/com/starrocks/connector/CatalogConnectorMetadataTest.java # fe/fe-core/src/test/java/com/starrocks/scheduler/TaskManagerTest.java
Why I'm doing:
What I'm doing:
Config. enable_mv_refresh_sync_refresh_mergeable
to support merge sync refresh mv task;Config. max_mv_task_run_meta_message_values_length
to limit the mv task run extra message's size;ENABLE_INSERT_STRICT
andENABLE_PROFILE
configurage in mv refresh.filterRows
to long since be's type isint64_t
and it may be overflow .Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: