We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa84803 commit d3c9ccdCopy full SHA for d3c9ccd
cmd/ingester/app/consumer/consumer.go
@@ -110,13 +110,15 @@ func (c *Consumer) Close() error {
110
111
func (c *Consumer) handleMessages(pc sc.PartitionConsumer) {
112
c.logger.Info("Starting message handler", zap.Int32("partition", pc.Partition()))
113
+ c.partitionMapLock.Lock()
114
c.partitionsHeld++
115
c.partitionsHeldGauge.Update(c.partitionsHeld)
116
defer func() {
117
118
c.partitionsHeld--
119
120
+ c.partitionMapLock.Unlock()
121
}()
- c.partitionMapLock.Lock()
122
wg := &c.partitionIDToState[pc.Partition()].wg
123
c.partitionMapLock.Unlock()
124
defer wg.Done()
0 commit comments