Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(error): log error field in stream reader retry loop #14792

Merged
merged 2 commits into from
Jan 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/stream/src/executor/source/source_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,10 @@ impl<S: StateStore> SourceExecutor<S> {
) -> StreamExecutorResult<()> {
let core = self.stream_source_core.as_mut().unwrap();
tracing::warn!(
"stream source reader error, actor: {:?}, source: {:?}",
self.actor_ctx.id,
core.source_id,
error = %e.as_report(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the sink side, an error would trigger actor exit and recovery loop, with the error Debugged with backtrace. Shall we follow the same practice here for source and switch from Display to Debug?

// Intentionally use `?` on the report to also include the backtrace.
tracing::error!(actor_id, error = ?err.as_report(), "actor exit with error");

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either LGTM

actor_id = self.actor_ctx.id,
source_id = %core.source_id,
"stream source reader error",
);
GLOBAL_ERROR_METRICS.user_source_reader_error.report([
"SourceReaderError".to_owned(),
Expand Down
Loading