fix active_set bug in min tso scheduler#7693
Conversation
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
|
/run-integration-test |
SeaRise
left a comment
There was a problem hiding this comment.
Maybe add unit tests for MinTsoScheduler, in ComputeServerTest.
Add it or not, I think it's fine
I've added a ut in ComputeServerTest. |
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
| std::this_thread::sleep_for(2s); | ||
| ASSERT_TRUE(TiFlashMetrics::instance().tiflash_task_scheduler.get(tiflash_task_scheduler_metrics::type_active_queries_count).Value() == 2); | ||
| ASSERT_TRUE(TiFlashMetrics::instance().tiflash_task_scheduler.get(tiflash_task_scheduler_metrics::type_waiting_queries_count).Value() == 0); | ||
| for (size_t i = 1; i < running_queries.size(); i++) |
There was a problem hiding this comment.
some nits: i++
Others LGTM
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SeaRise, yibin87 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/run-integration-test |
|
/run-all-tests |
|
/rebuild |
|
/run-integration-test |
|
/run-integration-test |
|
/run-all-tests |
|
/rebuild |
|
/run-integration-test |
|
/run-all-tests |
|
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
What problem does this PR solve?
Issue Number: close #7692
Problem Summary:
What is changed and how it works?
If
active_set_soft_limit, only schdule the non min-tso task if the task belongs to an active query.Check List
Tests
Side effects
Documentation
Release note