Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BowenXiao1999 committed Feb 2, 2023
1 parent a142f80 commit e32e123
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/batch/src/rpc/service/task_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use crate::task::{
self, BatchEnvironment, BatchManager, BatchTaskExecution, ComputeNodeContext, TaskId,
};

const LOCAL_EXECUTE_BUFFER_SIZE: usize = 1024;
const LOCAL_EXECUTE_BUFFER_SIZE: usize = 64;

#[derive(Clone)]
pub struct BatchServiceImpl {
Expand Down
4 changes: 3 additions & 1 deletion src/batch/src/task/task_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@ impl<C: BatchTaskContext> BatchTaskExecution<C> {
let err_str = e.to_string();
*failure.lock() = Some(e);
// There will be no more chunks, so send None.
sender.send(None).await.unwrap();
if let Err(_e) = sender.send(None).await {
warn!("failed to send None to annotate end");
}
if let Err(_e) = t_1
.change_state_notify(
TaskStatus::Failed,
Expand Down

0 comments on commit e32e123

Please sign in to comment.