Skip to content
Closed
Changes from all commits
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: 6 additions & 1 deletion crates/adapters/src/transport/kafka/ft/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,12 @@ impl InputConsumer for DummyInputConsumer {

fn error(&self, fatal: bool, error: AnyError, _tag: Option<&'static str>) {
info!("error: {error}");
self.called(ConsumerCall::Error(fatal));
// Record only fatal errors. Non-fatal errors, such as a momentary
// broker disconnection, can arrive at any time, and recording them
// would break the strict call sequence that `expect()` checks.
if fatal {
self.called(ConsumerCall::Error(fatal));
}
}

fn request_step(&self) {}
Expand Down