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] [issue 1064] Fix the panic when try to flush in DisableBatching=true #1065

Merged
merged 1 commit into from Jul 25, 2023

Conversation

Gleiphir2769
Copy link
Contributor

Fixes #1064

Motivation

If we set producer DisableBatching=true, it will be panic when call producer.Flush(). More details in #1064 .

Modifications

  • Avoid panic in non-batching producer
  • Add unit test to cover Flush() in non-batching producer.

Verifying this change

  • Make sure that the change passes the CI checks.

@RobertIndie RobertIndie added this to the v0.12.0 milestone Jul 25, 2023
@RobertIndie RobertIndie merged commit 4bfd4aa into apache:master Jul 25, 2023
6 checks passed
RobertIndie pushed a commit that referenced this pull request Sep 7, 2023
…=true (#1065)

Fixes #1064

### Motivation

If we set producer `DisableBatching=true`, it will be panic when call `producer.Flush()`. More details in #1064 .

### Modifications

- Avoid panic in non-batching producer
- Add unit test to cover `Flush()` in non-batching producer.

(cherry picked from commit 4bfd4aa)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Panic in flush() when DisableBatching=true
3 participants