-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Added FlushAsync
function which is called from CommitAsync
with await keyword
#1629
Conversation
…rwrite it instead. tolerate kafka message duplicate headers
… inside transaction
@@ -68,6 +68,29 @@ protected virtual void Flush() | |||
} | |||
} | |||
|
|||
protected virtual async Task FlushAsync() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not have Flush() call FlushAsync()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
{ | ||
while (!_bufferList.IsEmpty) | ||
{ | ||
#pragma warning disable CA2012 // Use ValueTasks correctly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the #pragma warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks
Description:
Added
FlushAsync
function which is called fromCommitAsync
with await keyword to ensure that multiple messages are produced in correct order from a single transactionIssue(s) addressed:
How to test:
Produce multiple messages inside a single transaction and check the order
Checklist: