提交 1eb8dca9 编写于 作者: J jinhai

Merge branch 'branch-0.5.0-yk' into 'branch-0.5.0'

MS-650 SQ8H index create issue

See merge request megasearch/milvus!741

Former-commit-id: 46dd13b7bba4c7b1bb6458faff72a9537cebb797
...@@ -22,6 +22,7 @@ Please mark all change in change log and use the ticket from JIRA. ...@@ -22,6 +22,7 @@ Please mark all change in change log and use the ticket from JIRA.
- MS-644 - Search crashed with index-type: flat - MS-644 - Search crashed with index-type: flat
- MS-647 - grafana display average cpu-temp - MS-647 - grafana display average cpu-temp
- MS-652 - IVFSQH quantization double free - MS-652 - IVFSQH quantization double free
- MS-650 - SQ8H index create issue
- MS-653 - When config check fail, Milvus close without message - MS-653 - When config check fail, Milvus close without message
- MS-654 - Describe index timeout when building index - MS-654 - Describe index timeout when building index
- MS-658 - Fix SQ8 Hybrid can't search - MS-658 - Fix SQ8 Hybrid can't search
......
...@@ -209,9 +209,11 @@ Action::SpecifiedResourceLabelTaskScheduler(ResourceMgrWPtr res_mgr, ResourcePtr ...@@ -209,9 +209,11 @@ Action::SpecifiedResourceLabelTaskScheduler(ResourceMgrWPtr res_mgr, ResourcePtr
} else { } else {
auto next_res_name = task->path().Next(); auto next_res_name = task->path().Next();
auto next_res = res_mgr.lock()->GetResource(next_res_name); auto next_res = res_mgr.lock()->GetResource(next_res_name);
if (event->task_table_item_->Move()) { // if (event->task_table_item_->Move()) {
next_res->task_table().Put(task); // next_res->task_table().Put(task);
} // }
event->task_table_item_->Move();
next_res->task_table().Put(task);
} }
} }
......
...@@ -125,6 +125,15 @@ Resource::pick_task_execute() { ...@@ -125,6 +125,15 @@ Resource::pick_task_execute() {
if (task_table_.Execute(index)) { if (task_table_.Execute(index)) {
return task_table_.Get(index); return task_table_.Get(index);
} }
// if (task_table_[index]->task->label()->Type() == TaskLabelType::SPECIFIED_RESOURCE) {
// if (task_table_.Get(index)->task->path().Current() == task_table_.Get(index)->task->path().Last()
// &&
// task_table_.Get(index)->task->path().Last() == name()) {
// if (task_table_.Execute(index)) {
// return task_table_.Get(index);
// }
// }
// }
// else try next // else try next
} }
return nullptr; return nullptr;
...@@ -180,6 +189,7 @@ Resource::executor_function() { ...@@ -180,6 +189,7 @@ Resource::executor_function() {
if (task_item->task->Type() == TaskType::BuildIndexTask) { if (task_item->task->Type() == TaskType::BuildIndexTask) {
BuildMgrInst::GetInstance()->Put(); BuildMgrInst::GetInstance()->Put();
ResMgrInst::GetInstance()->GetResource("cpu")->WakeupLoader(); ResMgrInst::GetInstance()->GetResource("cpu")->WakeupLoader();
ResMgrInst::GetInstance()->GetResource("disk")->WakeupLoader();
} }
if (subscriber_) { if (subscriber_) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册