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

Gracefully handle out of slot exception in kafka client produce #561

Merged
merged 13 commits into from
Nov 2, 2023
Merged

Gracefully handle out of slot exception in kafka client produce #561

merged 13 commits into from
Nov 2, 2023

Conversation

akrambek
Copy link
Contributor

@akrambek akrambek commented Nov 2, 2023

Description

Gracefully handle out of slot exception in kafka client produce

Fixes #558

@@ -583,6 +591,26 @@ private int flushRecordContFin(
return progress;
}

private int rejectAll(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private int rejectAll(
private int flushRecordIgnoreAll(

Comment on lines 608 to 610
progress = limit;

return progress;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
progress = limit;
return progress;
return limit;

int progress,
int limit)
{
client.cleanupNetwork(traceId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this to the place where we assign flusher to flushRecordIgnoreAll instead?

@jfallows jfallows changed the title Gracefully handle out of slot exception in kafka cache client produce Gracefully handle out of slot exception in kafka client produce Nov 2, 2023
@jfallows jfallows merged commit fc3683c into aklivity:develop Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gracefully handle out of slot exception in kafka cache client produce
2 participants