Skip to content

Commit

Permalink
fix crash when adjusting partition number
Browse files Browse the repository at this point in the history
  • Loading branch information
张旺 authored and ChangingFond committed Mar 15, 2023
1 parent 37e3e3f commit 80abc17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions producer/TalosProducer.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,8 @@ func (p *TalosProducer) DescribeTopicInfo() (*topic.TopicTalosResourceName, int3
}

func (c *TalosProducer) ProducerMonitorTask() {
c.producerLock.Lock()
defer c.producerLock.Unlock()
metrics := make([]*utils.FalconMetric, 0)
for _, p := range c.partitionSenderMap {
metrics = append(metrics, p.NewFalconMetrics()...)
Expand Down

0 comments on commit 80abc17

Please sign in to comment.