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

GH-2968 DefaultErrorHandler#handleBatchAndReturnRemaining recovered invalid #2969

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

Wzy19930507
Copy link
Contributor

@Wzy19930507 Wzy19930507 commented Dec 22, 2023

Resolves #2968

DefaultErrorHandler#handleBatchAndReturnRemaining recovered invalid and infinite loop when kafka listener threw BatchListenerFailedException and error record is first one in remaining list..

}
catch (Exception e) {
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Empty catch - can we address this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@sobychacko
Copy link
Contributor

I went through the PR. It looks good. Could you explain why it is not a problem when the record that throws the error is not the last one in the partition?

@Wzy19930507
Copy link
Contributor Author

Wzy19930507 commented Dec 23, 2023

I went through the PR. It looks good. Could you explain why it is not a problem when the record that throws the error is not the last one in the partition?

I got it wrong, error record must be first one in remaining list.

Fixed PR expressions.

…ing recovered invalid

DefaultErrorHandler#handleBatchAndReturnRemaining recovered invalid and infinite loop when kafka listener threw BatchListenerFailedException and error record is first one in remaining list

* address empty catch
* add unit test
@sobychacko sobychacko merged commit c188304 into spring-projects:main Jan 17, 2024
3 checks passed
@Wzy19930507 Wzy19930507 deleted the GH-2968 branch January 18, 2024 00:41
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.

DefaultErrorHandler#handleBatchAndReturnRemaining recovered invalid
2 participants