Skip to content

Commit 2fbbda5

Browse files
committed
fix: clear lastAssigned when revoking eager consumer
Fixes #686
1 parent 8b53958 commit 2fbbda5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎pkg/kgo/consumer_group.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ func (g *groupConsumer) revoke(stage revokeStage, lost map[string][]int32, leavi
639639
g.cfg.onRevoked(g.cl.ctx, g.cl, g.nowAssigned.read())
640640
}
641641
g.nowAssigned.store(nil)
642+
g.lastAssigned = nil
642643

643644
// After nilling uncommitted here, nothing should recreate
644645
// uncommitted until a future fetch after the group is

0 commit comments

Comments
 (0)