Skip to content

GH-2195: Fix No Seek Retry Mode #2267

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

Merged
merged 2 commits into from
Jun 15, 2022
Merged

Conversation

garyrussell
Copy link
Contributor

  • Revert to seeking when CommitFailedException - due to a rebalance
  • For batch listeners, move committing to the try block
  • For record listeners, AckMode.RECORD already commits in the try block
  • With AckMode.BATCH, detect a no-seek retry and call the error handler handleRemaining

cherry-pick to 2.9.x

*/
@SpringJUnitConfig
@DirtiesContext
public class DefaultErrorHandlerSeekAfterCommitException {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public class DefaultErrorHandlerSeekAfterCommitException {
public class DefaultErrorHandlerSeekAfterCommitExceptionTests {

?

*/
@SpringJUnitConfig
@DirtiesContext
public class DefaultErrorHandlerSeekAfterCommitExceptionBatchAck {
Copy link
Member

Choose a reason for hiding this comment

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

Was the Tests suffix rule changed somehow?

- Revert to seeking when `CommitFailedException` - due to a rebalance
- For batch listeners, move committing to the try block
- For record listeners, `AckMode.RECORD` already commits in the try block
- With `AckMode.BATCH`, detect a no-seek retry and call the error handler `handleRemaining`

**cherry-pick to 2.9.x**
@artembilan artembilan merged commit db617ec into spring-projects:main Jun 15, 2022
artembilan pushed a commit that referenced this pull request Jun 15, 2022
Related to: #2195

- Revert to seeking when `CommitFailedException` - due to a rebalance
- For batch listeners, move committing to the try block
- For record listeners, `AckMode.RECORD` already commits in the try block
- With `AckMode.BATCH`, detect a no-seek retry and call the error handler `handleRemaining`

**cherry-pick to 2.9.x**

* Fix test class names.
@artembilan
Copy link
Member

... and cherry-picked to 2.9.x

@garyrussell garyrussell deleted the GH-2195 branch June 16, 2022 13:32
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.

2 participants