-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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-3276: Support async retry with @RetryableTopic #3523
Closed
chickenchickenlove
wants to merge
30
commits into
spring-projects:main
from
chickenchickenlove:240929-async-retry
Closed
Changes from 26 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
eee3515
Test
chickenchickenlove fdc59f0
DRAFT
chickenchickenlove 87ac522
GH-3276: Draft and test codes.
chickenchickenlove 723cc18
Add test cases.
chickenchickenlove ac110b4
Add method
chickenchickenlove e30319d
Fixes lint errors.
chickenchickenlove 6399b81
Minimize FailedRecordTuple dependency.
chickenchickenlove 4a4a1ee
Refactor test codes and real codes.
chickenchickenlove 08e7721
Modify method name.
chickenchickenlove c0fea39
Fixes compile error.
chickenchickenlove e74072c
Remove async retry callback from MessageListener contract.
chickenchickenlove 645d7ce
Revert Copyright period.
chickenchickenlove 0c89c92
Revert KafkaBackkOffAwareMessageListenerAdapter.
chickenchickenlove 3f6b447
Depends on general type on KafkaMessageListenerContainer.
chickenchickenlove 01de80e
Remove sleep(1) from async retry test.
chickenchickenlove 97f05be
Remove waitAWhile().
chickenchickenlove d219037
Add java docs.
chickenchickenlove e8378da
Add author
chickenchickenlove 967a7c4
Fixes flaky test.
chickenchickenlove f2c67c7
Modify contract of callback for async failure.
chickenchickenlove 56e6fd3
Fixes java docs for setCallbackFroAsyncFailure.
chickenchickenlove 5e70c76
Fix the tests for async failure retry.
chickenchickenlove 1d9f7b9
Remove weed from async retry test and fix lint error.
chickenchickenlove e418b10
Add Tags for conditional test.
chickenchickenlove 002aaf4
Remove useless tag for async failure retry tests.
chickenchickenlove 3b79d59
Remove unused import
chickenchickenlove 82ecac7
Make a method static and Add @SuppressWarning.
chickenchickenlove 0afae4e
Remove useless latch.
chickenchickenlove 796397f
Use specific ListenerAdapter type for async retry feature.
chickenchickenlove 4e89d53
Fixes lint error.
chickenchickenlove File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you check only for an
AbstractDelegatingMessageListenerAdapter
?Why regular
this.genericListener
cannot be as aRecordMessagingMessageListenerAdapter
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the runtime,
KafkaBackOffAwareMessageListenerAdapter
is set forthis.genericListener
andthis.listener
.The
KafkaBackOffAwareMessageListenerAdapter
has reference ofRecordMessagingMessageListenerAdapter
as itsdelegate
.Please refer to a image below 🙇♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. What I mean that it might be better to have a generic solution. We with @sobychacko are working for async observation and gave sumilar condition almost at the same line of code. So, I’m anticipating to combine them in the end. Therefore this clarification is useful . Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I think your previous solution was correct.
We have to set callback only in case of a
KafkaBackoffAwareMessageListenerAdapter
which is indeed an indicator that we are in retry topic scenario.This way we won't break all other use-cases where such an error handling would be unexpected.