Skip to content

Commit 2ea66b8

Browse files
authored
chore: refine error message on unhandled error in kinesis (risingwavelabs#12055)
Signed-off-by: tabVersion <[email protected]>
1 parent dcfbfb5 commit 2ea66b8

File tree

1 file changed

+10
-1
lines changed
  • src/connector/src/source/kinesis/source

1 file changed

+10
-1
lines changed

src/connector/src/source/kinesis/source/reader.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,16 @@ impl KinesisSplitReader {
193193
self.new_shard_iter().await?;
194194
continue;
195195
}
196-
Err(e) => return Err(anyhow!(DisplayErrorContext(e))),
196+
Err(e) => {
197+
let error_msg = format!(
198+
"Kinesis got a unhandled error: {:?}, stream {:?}, shard {:?}",
199+
DisplayErrorContext(e),
200+
self.stream_name,
201+
self.shard_id,
202+
);
203+
tracing::error!("{}", error_msg);
204+
return Err(anyhow!("{}", error_msg));
205+
}
197206
}
198207
}
199208
}

0 commit comments

Comments
 (0)