You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dekaf: Move append_logs_to_writer outside of tokio::select! to prevent inadvertently cancelling a pending append.
I realized we were dropping some log messages on the floor, especially messages that were logged soon before a task exited. I ended up realizing that because the call to `append_logs_to_writer` is being used as the future for `tokio::select!`, it will get cancelled if another future resolves before it does.
This was happening most noticeably when a Session crashed: the error log event containing the error didn't have enough time to fully append before the `mpsc::Receiver<TaskWriterMessage>` closed, which caused `tokio::select!` to cancel the call to `append_logs_to_writer`, dropping the logs contained within it on the ground.
0 commit comments