Skip to content

FallbackBatchErrorHandler Does Not Publish Pause/Resume Events #2387

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 Sep 5, 2022 · 2 comments · Fixed by #2420
Closed

FallbackBatchErrorHandler Does Not Publish Pause/Resume Events #2387

garyrussell opened this issue Sep 5, 2022 · 2 comments · Fixed by #2420

Comments

@frosiere
Copy link
Contributor

frosiere commented Sep 5, 2022

Pause and resume events should also be fired from KafkaMessageListenerContainer#pauseForNackSleep and KafkaMessageListenerContainer#resumeConsumerIfNeccessary.

garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Sep 6, 2022
Resolves spring-projects#2387

- `FallbackBatchErrorHandler`
- `Acknowledgment.nack()`

**2.9.x only - I will back port/forward port**
artembilan pushed a commit that referenced this issue Sep 6, 2022
Resolves #2387

- `FallbackBatchErrorHandler`
- `Acknowledgment.nack()`

**2.9.x only - I will back port/forward port**
garyrussell added a commit that referenced this issue Sep 6, 2022
Resolves #2387

- `FallbackBatchErrorHandler`
- `Acknowledgment.nack()`

**2.9.x only - I will back port/forward port**
@garyrussell
Copy link
Contributor Author

Pause/Resume events are not published if the container is a ConcurrentMessageListenerContainer (e.g. @KafkaListener).

@garyrussell garyrussell reopened this Sep 29, 2022
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Sep 29, 2022
Resolves spring-projects#2387

Events were not published for `ConcurrentMessageListenerContainer`s.

Also resolves a class tangle in spring-projects#2417
between `ErrorHandlingUtils` and KMLC.
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Sep 29, 2022
Resolves spring-projects#2387

Events were not published for `ConcurrentMessageListenerContainer`s.

Also resolves a class tangle in spring-projects#2417
between `ErrorHandlingUtils` and KMLC.

**cherry-pick to 2.9.x, 2.8.x**
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Sep 29, 2022
Resolves spring-projects#2387

Events were not published for `ConcurrentMessageListenerContainer`s.

Also resolves a class tangle in spring-projects#2417
between `ErrorHandlingUtils` and KMLC.

**cherry-pick to 2.9.x, 2.8.x**
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Sep 29, 2022
Resolves spring-projects#2387

Events were not published for `ConcurrentMessageListenerContainer`s.

Also resolves a class tangle in spring-projects#2417
between `ErrorHandlingUtils` and KMLC.

**cherry-pick to 2.9.x, 2.8.x**
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Sep 29, 2022
Resolves spring-projects#2387

Events were not published for `ConcurrentMessageListenerContainer`s.

Also resolves a class tangle in spring-projects#2417
between `ErrorHandlingUtils` and KMLC.

**cherry-pick to 2.9.x, 2.8.x**
artembilan pushed a commit that referenced this issue Sep 29, 2022
Resolves #2387

Events were not published for `ConcurrentMessageListenerContainer`s.

Also resolves a class tangle in #2417
between `ErrorHandlingUtils` and KMLC.

**cherry-pick to 2.9.x, 2.8.x**
artembilan pushed a commit that referenced this issue Sep 29, 2022
Resolves #2387

Events were not published for `ConcurrentMessageListenerContainer`s.

Also resolves a class tangle in #2417
between `ErrorHandlingUtils` and KMLC.

**cherry-pick to 2.9.x, 2.8.x**

# Conflicts:
#	spring-kafka/src/main/java/org/springframework/kafka/listener/ErrorHandlingUtils.java
#	spring-kafka/src/test/java/org/springframework/kafka/listener/FallbackBatchErrorHandlerIntegrationTests.java
artembilan pushed a commit that referenced this issue Sep 29, 2022
Resolves #2387

Events were not published for `ConcurrentMessageListenerContainer`s.

Also resolves a class tangle in #2417
between `ErrorHandlingUtils` and KMLC.

**cherry-pick to 2.9.x, 2.8.x**

# Conflicts:
#	spring-kafka/src/main/java/org/springframework/kafka/listener/ErrorHandlingUtils.java
#	spring-kafka/src/test/java/org/springframework/kafka/listener/FallbackBatchErrorHandlerIntegrationTests.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants