Skip to content

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
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