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

[Bug]: Producer failed to retrieve record metadata when sending more than one batch in a request #2443

Closed
morenol opened this issue Jun 28, 2022 · 1 comment
Labels
bug Something isn't working producer
Milestone

Comments

@morenol
Copy link
Contributor

morenol commented Jun 28, 2022

What happened
When the request of producer has more than one batch.
The producer only sends back the base offset of the first batch. Therefore batch metadata is not resolved for the batches that are after the first one.

Expected behavior
record metadata in:

let produce_output = producer.send(RecordKey::NULL, value).await?;
let record_metadata = produce_output.wait().await?;

should not fail with : receiving from an empty and closed channel

How to reproduce it (as minimally and precisely as possible)
Steps to reproduce the behavior:

  1. Run the command:
    fluvio topic create topicname
    fluvio produce topicname -f input.txt

with this file:
input.txt

@digikata
Copy link
Contributor

digikata commented Jun 28, 2022

The odd part is that TJs stat branch pr does not have the same problem if you add the --stats flag.

edit: #2424

@bors bors bot closed this as completed in 6232a13 Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working producer
Projects
None yet
3 participants