Skip to content

Collapse ErrorHandler and BatchErrorHandler interface hierarchies into a single interface #615

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

Closed
garyrussell opened this issue Mar 21, 2018 · 2 comments · Fixed by #1892
Assignees
Milestone

Comments

@garyrussell
Copy link
Contributor

No description provided.

@garyrussell garyrussell added this to the 2.2.M1 milestone Mar 21, 2018
@garyrussell garyrussell self-assigned this Mar 21, 2018
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Mar 21, 2018
Fixes spring-projects#614

PR spring-projects#595 added support for calling error handlers for general errors not related
to listener invocation.

However, the wrong `handle()` method was called.

Add a default implementation of the lowest interface method in the hierarchies to
`ErrorHandler` and `BatchErrorHandler` respectively and invoke that so the
right method will always be invoked, regardless of the error handler type.

Also see spring-projects#615
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Mar 21, 2018
Fixes spring-projects#614

PR spring-projects#595 added support for calling error handlers for general errors not related
to listener invocation.

However, the wrong `handle()` method was called.

Add a default implementation of the lowest interface method in the hierarchies to
`ErrorHandler` and `BatchErrorHandler` respectively and invoke that so the
right method will always be invoked, regardless of the error handler type.

Also see spring-projects#615
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Mar 21, 2018
Fixes spring-projects#614

PR spring-projects#595 added support for calling error handlers for general errors not related
to listener invocation.

However, the wrong `handle()` method was called.

Add a default implementation of the lowest interface method in the hierarchies to
`ErrorHandler` and `BatchErrorHandler` respectively and invoke that so the
right method will always be invoked, regardless of the error handler type.

Also see spring-projects#615
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Mar 21, 2018
Fixes spring-projects#614

PR spring-projects#595 added support for calling error handlers for general errors not related
to listener invocation.

However, the wrong `handle()` method was called.

Add a default implementation of the lowest interface method in the hierarchies to
`ErrorHandler` and `BatchErrorHandler` respectively and invoke that so the
right method will always be invoked, regardless of the error handler type.

Also see spring-projects#615
artembilan pushed a commit that referenced this issue Mar 21, 2018
Fixes #614

PR #595 added support for calling error handlers for general errors not related
to listener invocation.

However, the wrong `handle()` method was called.

Add a default implementation of the lowest interface method in the hierarchies to
`ErrorHandler` and `BatchErrorHandler` respectively and invoke that so the
right method will always be invoked, regardless of the error handler type.

Also see #615
@garyrussell
Copy link
Contributor Author

Closing as won't fix.

@garyrussell
Copy link
Contributor Author

Reopening: #1837

@garyrussell garyrussell reopened this Jun 22, 2021
@garyrussell garyrussell modified the milestones: Backlog, 3.0.M1 Jun 22, 2021
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 14, 2021
Flatten `GenericErrorHandler` into a single interface.
Create an adapter for legacy error handlers.

See spring-projects#615
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 14, 2021
Flatten `GenericErrorHandler` into a single interface.
Create an adapter for legacy error handlers.

See spring-projects#615
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 14, 2021
Flatten `GenericErrorHandler` into a single interface.
Create an adapter for legacy error handlers.

See spring-projects#615
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 14, 2021
Flatten `GenericErrorHandler` into a single interface.
Create an adapter for legacy error handlers.

See spring-projects#615
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 14, 2021
Flatten `GenericErrorHandler` into a single interface.
Create an adapter for legacy error handlers.

See spring-projects#615
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 14, 2021
Flatten `GenericErrorHandler` into a single interface.
Create an adapter for legacy error handlers.

See spring-projects#615
artembilan pushed a commit that referenced this issue Jul 15, 2021
Flatten `GenericErrorHandler` into a single interface.
Create an adapter for legacy error handlers.

See #615

* Fix since; expand javadocs; improve method names.
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 16, 2021
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 16, 2021
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 16, 2021
artembilan pushed a commit that referenced this issue Jul 16, 2021
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 19, 2021
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 19, 2021
See spring-projects#615

Replaces legacy `SeekToCurrentErrorHandler` and `RecoveringBatchErrorHandler`.
These were the previous defaults when no transaction manager is present.
They will be deprecated in a future PR.

- refactor common code into superclass/utilities
- copy existing test case classes, changing the error handler types
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 19, 2021
See spring-projects#615

Replaces legacy `SeekToCurrentErrorHandler` and `RecoveringBatchErrorHandler`.
These were the previous defaults when no transaction manager is present.
They will be deprecated in a future PR.

- refactor common code into superclass/utilities
- copy existing test case classes, changing the error handler types
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 19, 2021
See spring-projects#615

Replaces legacy `SeekToCurrentErrorHandler` and `RecoveringBatchErrorHandler`.
These were the previous defaults when no transaction manager is present.
They will be deprecated in a future PR.

- refactor common code into superclass/utilities
- copy existing test case classes, changing the error handler types
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 19, 2021
See spring-projects#615

Replaces legacy `SeekToCurrentErrorHandler` and `RecoveringBatchErrorHandler`.
These were the previous defaults when no transaction manager is present.
They will be deprecated in a future PR.

- refactor common code into superclass/utilities
- copy existing test case classes, changing the error handler types
artembilan pushed a commit that referenced this issue Jul 20, 2021
* GH-615: Add DefaultErrorHandler

See #615

Replaces legacy `SeekToCurrentErrorHandler` and `RecoveringBatchErrorHandler`.
These were the previous defaults when no transaction manager is present.
They will be deprecated in a future PR.

- refactor common code into superclass/utilities
- copy existing test case classes, changing the error handler types

* Add CommonDelegatingErrorHandler
garyrussell added a commit that referenced this issue Jul 21, 2021
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 28, 2021
See spring-projects#615

- CommonContainerStoppingErrorHandler
- CommonMixedErrorHandler
artembilan pushed a commit that referenced this issue Jul 28, 2021
See #615

- CommonContainerStoppingErrorHandler
- CommonMixedErrorHandler
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 29, 2021
Resolves spring-projects#615

- Deprecate remaining legacy error handlers
- Fix `DefaultErrorHandler` for remaining records and delivery header
- Docs
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 29, 2021
Resolves spring-projects#615

- Deprecate remaining legacy error handlers
- Fix `DefaultErrorHandler` for remaining records and delivery header
- Docs
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 29, 2021
Resolves spring-projects#615

- Deprecate remaining legacy error handlers
- Fix `DefaultErrorHandler` for remaining records and delivery header
- Docs
artembilan pushed a commit that referenced this issue Jul 29, 2021
Resolves #615

- Deprecate remaining legacy error handlers
- Fix `DefaultErrorHandler` for remaining records and delivery header
- Docs
@garyrussell garyrussell changed the title Collapse ErrorHandler and BatchErrorHandler interface hierarchies into a single interface for each Collapse ErrorHandler and BatchErrorHandler interface hierarchies into a single interface Mar 3, 2022
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Mar 3, 2022
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Mar 3, 2022
artembilan pushed a commit that referenced this issue Mar 3, 2022
See #615

# Conflicts:
#	spring-kafka-docs/src/main/asciidoc/kafka.adoc
@garyrussell garyrussell modified the milestones: 3.0 Backlog, 2.8.0-M1 Oct 20, 2022
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 a pull request may close this issue.

1 participant