Skip to content

[fix] [issue 1057]: Fix the producer flush opertion is not guarantee to flush all messages - #1058

Merged
RobertIndie merged 3 commits into
apache:masterfrom
Gleiphir2769:fix_1057
Jul 20, 2023
Merged

RobertIndie merged 3 commits into
apache:masterfrom
Gleiphir2769:fix_1057

Conversation

@Gleiphir2769

Copy link
Copy Markdown
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.

Comment thread pulsar/producer_partition.go Resolved
@RobertIndie
RobertIndie merged commit 9867c29 into apache:master Jul 20, 2023
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