Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiszlw committed Apr 19, 2024
1 parent c1e7ecf commit a329d06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ballista/scheduler/src/cluster/kv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ 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
.insert(executor_id.to_string(), decoded.clone());
Expand Down
2 changes: 0 additions & 2 deletions ballista/scheduler/src/scheduler_server/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ mod test {

use super::{SchedulerGrpc, SchedulerServer};

// TODO fixme
#[tokio::test]
#[ignore]
async fn test_register_executor_in_heartbeat_service() -> Result<(), BallistaError> {
let cluster = test_cluster_context();

Expand Down

0 comments on commit a329d06

Please sign in to comment.