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

Return back to the caller on rebalance events #644

Merged
merged 1 commit into from
Jan 11, 2024

Commits on Jan 11, 2024

  1. Return back to the caller on rebalance events

    This does not affect the StreamConsumer or any other wrapper consumer.
    It will only incur on an extra Poll call when there's a rebalance event.
    
    When using bindings built upon the rust-rdkafka ffi, the caller is
    responsible for initiating the rebalance calls (*assign).
    If a high timeout is specified, the rebalance handler will only be
    triggered once the timeout period has elapsed.
    
    This fixes it by always returning on rebalance events except when
    Timeout::Never. Poll calls with timeout::Never are expected to return
    a message.
    scanterog authored and davidblewett committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    d6ec6e1 View commit details
    Browse the repository at this point in the history