Skip to content

[Fix] NegativeAcksTracker need close when consumer closed. - #188

Merged
shibd merged 1 commit into
apache:mainfrom
shibd:close_neack_tracker
Feb 9, 2023
Merged

[Fix] NegativeAcksTracker need close when consumer closed.#188
shibd merged 1 commit into
apache:mainfrom
shibd:close_neack_tracker

Conversation

@shibd

@shibd shibd commented Feb 6, 2023

Copy link
Copy Markdown
Member

Motivation

When consumers close, also need close NegativeAcksTracker.

Modifications

  • ConsumerImpl: close negativeAcksTracker_(cancel timer and clear nackedMessages_) when consumer shutdown or close.

Verifying this change

  • Add ConsumerTest.testNegativeAcksTrackerClose to cover it.

Documentation

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

@shibd shibd self-assigned this Feb 6, 2023
@shibd shibd added the bug Something isn't working label Feb 6, 2023
@shibd shibd added this to the 3.2.0 milestone Feb 6, 2023
Comment thread lib/ConsumerImpl.cc
@shibd
shibd merged commit c3e3e8a into apache:main Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants