-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Publish Event In Container when Authorization/Authentication Exception occurs and retry takes place #2284
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
Comments
i think this make sense. I'm not sure yet in the implementation details, but I'm OK to accept this as a Let's also here from @garyrussell next week when he comes back from vacation! |
Yes, it makes sense; feel free to submit a PR. |
* Added Events for auth failed and successful retry of auth * publish of these events * unit testing Closes spring-projects#2284
Hi @garyrussell , |
Thank you for taking care of this. @danielgentes |
Implement review suggestions: * new files only 2022 * copy paste error * javadoc wrapping
You're welcome, happy to help @indraneelb1903, I hope the changes match your expectations of the feature |
Fixes #2284 * Added Events for auth failed and successful retry of auth * publish of these events * unit testing * new files only 2022 * copy paste error * javadoc wrapping * remove `@since` tags not at top level * event documentation * `@author` on changed classes * corrected javadoc
Uh oh!
There was an error while loading. Please reload this page.
Hi @garyrussell and @artembilan
I am using spring kafka and i need to do something when kafka connection error happens due to authorization/authentication exception been thrown in the following class - https://github.com/spring-projects/spring-kafka/blob/main/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java
No , i do not want the container to stop , hence i have the authExceptionRetryInterval set. But what i would also like is an application event to be published when this kind of error occurs so i can listen on it and then do something custom.
Also , i would also like an event to be published when the connection is successfully restored in the pollAndInvoke() method in the same class. Please let me know your thoughts on the same and if you guys are open to such a change.
The text was updated successfully, but these errors were encountered: