Skip to content

Commit

Permalink
fix: clear lastAssigned when revoking eager consumer
Browse files Browse the repository at this point in the history
Fixes #686
  • Loading branch information
hamdanjaveed committed May 8, 2024
1 parent 8b53958 commit 2fbbda5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kgo/consumer_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ func (g *groupConsumer) revoke(stage revokeStage, lost map[string][]int32, leavi
g.cfg.onRevoked(g.cl.ctx, g.cl, g.nowAssigned.read())
}
g.nowAssigned.store(nil)
g.lastAssigned = nil

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

0 comments on commit 2fbbda5

Please sign in to comment.