mirror of https://github.com/milvus-io/milvus.git
fix the bug of DeleteTask state not change (#3935)
* fix the bug of DeleteTask state not change Signed-off-by: godchen0212 <qingxiang.chen@zilliz.com>pull/3941/head
parent
e397dd20b9
commit
f46e2a621d
|
@ -4,6 +4,7 @@ Please mark all change in change log and use the issue from GitHub
|
|||
|
||||
# Milvus 0.10.4 (TBD)
|
||||
## Bug
|
||||
- \#3906 Change DeleteTask state when it is loaded to avoid server crash.
|
||||
|
||||
## Feature
|
||||
|
||||
|
|
|
@ -174,7 +174,8 @@ Resource::loader_function() {
|
|||
task_item->Loaded();
|
||||
|
||||
auto& label = task_item->task->label();
|
||||
if (label != nullptr && label->Type() != TaskLabelType::BROADCAST) {
|
||||
if (label != nullptr &&
|
||||
(label->Type() != TaskLabelType::BROADCAST || task_item->task->Type() == TaskType::DeleteTask)) {
|
||||
if (task_item->from) {
|
||||
task_item->from->Moved();
|
||||
task_item->from->task = FinishedTask::Create(task_item->from->task);
|
||||
|
|
Loading…
Reference in New Issue