From 5c186791e5de18d1c482b31c36e963edb8f61841 Mon Sep 17 00:00:00 2001 From: lukemartinlogan Date: Thu, 19 Oct 2023 02:01:54 -0500 Subject: [PATCH] Print out existing states? --- hrun/src/worker.cc | 3 +++ .../include/hermes_blob_mdm/hermes_blob_mdm_tasks.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hrun/src/worker.cc b/hrun/src/worker.cc index 0b191b680..551468983 100644 --- a/hrun/src/worker.cc +++ b/hrun/src/worker.cc @@ -77,6 +77,9 @@ void Worker::PollGrouped(WorkEntry &work_entry) { TaskState *&exec = rctx.exec_; exec = HRUN_TASK_REGISTRY->GetTaskState(task->task_state_); if (!exec) { + for (std::pair entries : HRUN_TASK_REGISTRY->task_state_ids_) { + HILOG(kInfo, "Task state: {} id: {}", entries.first, entries.second) + } HELOG(kFatal, "(node {}) Could not find the task state: {}", HRUN_CLIENT->node_id_, task->task_state_); entry->complete_ = true; diff --git a/tasks/hermes_blob_mdm/include/hermes_blob_mdm/hermes_blob_mdm_tasks.h b/tasks/hermes_blob_mdm/include/hermes_blob_mdm/hermes_blob_mdm_tasks.h index 806340fc1..332c9768b 100644 --- a/tasks/hermes_blob_mdm/include/hermes_blob_mdm/hermes_blob_mdm_tasks.h +++ b/tasks/hermes_blob_mdm/include/hermes_blob_mdm/hermes_blob_mdm_tasks.h @@ -125,7 +125,7 @@ struct SetBucketMdmTask : public Task, TaskFlags { template void SerializeStart(Ar &ar) { task_serialize(ar); - ar(bkt_mdm_, stager_mdm_); + ar(bkt_mdm_, stager_mdm_, op_mdm_); } /** (De)serialize message return */