Skip to content

Commit

Permalink
Merge pull request #720 from hamdanjaveed/master
Browse files Browse the repository at this point in the history
fix: clear lastAssigned when revoking eager consumer
  • Loading branch information
twmb authored May 26, 2024
2 parents 48855f9 + 2fbbda5 commit 4ccdc73
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 4ccdc73

Please sign in to comment.