Skip to content

Bug: When appRebalanceEnable == true and rebalanceCb == nil and channel == nil, it shound return ev #1457

@YYChildren

Description

@YYChildren

When appRebalanceEnable == true and rebalanceCb == nil and channel == nil, we want handle the event by poll , so the rebalance event should return by poll but not nil.

link:

if channel != nil && c.appRebalanceEnable && c.rebalanceCb == nil {

fix example:

	if c.appRebalanceEnable && c.rebalanceCb == nil {
		// Channel-based consumer with rebalancing enabled,
		// return the rebalance event and rely on the  application
		// to call *Assign() / *Unassign().
		return ev
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions