Skip to content

Commit

Permalink
Fix executor metadata decode bug (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiszlw authored Jun 12, 2024
1 parent e6829c9 commit dcaa1cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ballista/scheduler/src/cluster/kv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,12 @@ impl<S: KeyValueStore, T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan>
metadata.value().clone()
} else {
let value = self.store.get(Keyspace::Executors, executor_id).await?;
if value.is_empty() {
return Err(BallistaError::Internal(format!(
"Executor {} not registered",
executor_id
)));
}
let decoded =
decode_into::<protobuf::ExecutorMetadata, ExecutorMetadata>(&value)?;
self.executors
Expand Down

0 comments on commit dcaa1cf

Please sign in to comment.