Skip to content
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

bugfix: check callback to avoid std::bad_function_call exception #456

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zliang-min
Copy link

@zliang-min zliang-min commented Nov 22, 2024

Fixes #455

Motivation

Fixed the bug that when reading messages from a non-persistent topic with Reader, it throw std::bad_function_call exception.

Modifications

Check checkback before calling it in AckGroupingTracker.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

Documentation

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

  • doc-not-needed
    (Please explain why)

A simple bug fix.

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

@shibd
Copy link
Member

shibd commented Nov 22, 2024

hi, @zliang-min Thanks for PR, can you add a unit test to cover this?

@BewareMyPower BewareMyPower added this to the 3.7.0 milestone Nov 22, 2024
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.

[Bug] std::bad_function_call was thrown on Reader::ReadNext on a non-persistent topic
3 participants