Skip to content

Conversation

evanh
Copy link
Member

@evanh evanh commented Jul 18, 2025

This adds the error codes to the producer failure metric in Rust. Some new producer errors were also
added that explicitly deal with producing (similar to the consumer errors).

This adds the error codes to the producer failure metric in Rust. Some new producer errors were also
added that explicitly deal with producing (similar to the consumer errors).
@evanh evanh requested review from a team as code owners July 18, 2025 15:30
@@ -243,4 +243,20 @@ mod tests {
.produce(&destination, payload)
.expect("Message produced")
}

#[test]
#[ignore = "This should fail with a KafkaError but doesn't for some reason"]
Copy link
Member Author

Choose a reason for hiding this comment

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

I could not figure out how to get the produce to fail. Even with a non-existent topic, referencing a partition that doesn't exist, on a broker that doesn't exist, this test still passes.

Copy link
Member

Choose a reason for hiding this comment

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

Ah yes, @fpacifici @bmckerry found an issue with these producers: they do not await until the produce is actually done. see how the arroyo produce waits with callback+future, that's missing. maybe you can fix it in the same PR? otherwise it goes to the backlog

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah OK I'll see if I can fix that.

Copy link
Member Author

Choose a reason for hiding this comment

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

I decided to make it a separate PR because it's not a trivial change: #473

@evanh evanh force-pushed the evanh/fix/add-error-codes-rust-producer branch from 4880a93 to 235f942 Compare July 18, 2025 20:19
@evanh evanh merged commit 6fb4ca4 into main Jul 21, 2025
29 checks passed
@evanh evanh deleted the evanh/fix/add-error-codes-rust-producer branch July 21, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants