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 1057]: Fix the producer flush opertion is not guarantee to flush all messages #1058

Merged
merged 3 commits into from Jul 20, 2023

Conversation

Gleiphir2769
Copy link
Contributor

Fixes #1057

Motivation

dataChan is introduced by #1029 to fix the problem of reconnectToBroker. But it missed that if a flush operation excuted, there may still be some messages in dataChan. And these messages can't be flushed.

Modifications

  • Fix the producer flush opertion is not guarantee to flush all messages

Verifying this change

  • Make sure that the change passes the CI checks.

@RobertIndie RobertIndie merged commit 9867c29 into apache:master Jul 20, 2023
6 checks passed
RobertIndie pushed a commit that referenced this pull request Sep 7, 2023
…to flush all messages (#1058)

Fixes #1057

### Motivation

`dataChan` is introduced by #1029  to fix the problem of reconnectToBroker. But it missed that if a flush operation excuted, there may still be some messages in `dataChan`. And these messages can't be flushed.

### Modifications

- Fix the producer flush opertion is not guarantee to flush all messages

(cherry picked from commit 9867c29)
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] The producer flush opertion is not guarantee to flush all messages
2 participants