[BUG] race #133

Closed
opened 2024-04-19 12:52:35 +03:00 by vtolstov · 2 comments
Owner
==================
WARNING: DATA RACE
Write at 0x00c00022c330 by goroutine 1694:
  runtime.mapassign()
      /usr/local/go/src/runtime/map.go:579 +0x0
  go.unistack.org/micro-broker-kgo/v3.(*subscriber).assigned()
      /build/vendor/go.unistack.org/micro-broker-kgo/v3/subscriber.go:189 +0x572
  go.unistack.org/micro-broker-kgo/v3.(*subscriber).assigned-fm()
      <autogenerated>:1 +0x64
  github.com/twmb/franz-go/pkg/kgo.(*consumer).initGroup.func2()
      /build/vendor/github.com/twmb/franz-go/pkg/kgo/consumer_group.go:343 +0x56e
  github.com/twmb/franz-go/pkg/kgo.(*assignRevokeSession).assign.func1()
      /build/vendor/github.com/twmb/franz-go/pkg/kgo/consumer_group.go:794 +0x2de

Previous read at 0x00c00022c330 by goroutine 210:
  runtime.mapiternext()
      /usr/local/go/src/runtime/map.go:862 +0x0
  go.unistack.org/micro-broker-kgo/v3.(*subscriber).poll.func1()
      /build/vendor/go.unistack.org/micro-broker-kgo/v3/subscriber.go:108 +0x61a

Goroutine 1694 (running) created at:
  github.com/twmb/franz-go/pkg/kgo.(*assignRevokeSession).assign()
      /build/vendor/github.com/twmb/franz-go/pkg/kgo/consumer_group.go:783 +0x11c
  github.com/twmb/franz-go/pkg/kgo.(*groupConsumer).setupAssignedAndHeartbeat()
      /build/vendor/github.com/twmb/franz-go/pkg/kgo/consumer_group.go:885 +0x7ca
  github.com/twmb/franz-go/pkg/kgo.(*groupConsumer).manage()
      /build/vendor/github.com/twmb/franz-go/pkg/kgo/consumer_group.go:391 +0x571
  github.com/twmb/franz-go/pkg/kgo.(*groupConsumer).findNewAssignments.gowrap3()
      /build/vendor/github.com/twmb/franz-go/pkg/kgo/consumer_group.go:1785 +0x33

Goroutine 210 (running) created at:
  go.unistack.org/micro-broker-kgo/v3.(*subscriber).poll()
      /build/vendor/go.unistack.org/micro-broker-kgo/v3/subscriber.go:84 +0x1e4
  go.unistack.org/micro-broker-kgo/v3.(*Broker).Subscribe.gowrap1()
      /build/vendor/go.unistack.org/micro-broker-kgo/v3/kgo.go:392 +0x4f
``` ================== WARNING: DATA RACE Write at 0x00c00022c330 by goroutine 1694: runtime.mapassign() /usr/local/go/src/runtime/map.go:579 +0x0 go.unistack.org/micro-broker-kgo/v3.(*subscriber).assigned() /build/vendor/go.unistack.org/micro-broker-kgo/v3/subscriber.go:189 +0x572 go.unistack.org/micro-broker-kgo/v3.(*subscriber).assigned-fm() <autogenerated>:1 +0x64 github.com/twmb/franz-go/pkg/kgo.(*consumer).initGroup.func2() /build/vendor/github.com/twmb/franz-go/pkg/kgo/consumer_group.go:343 +0x56e github.com/twmb/franz-go/pkg/kgo.(*assignRevokeSession).assign.func1() /build/vendor/github.com/twmb/franz-go/pkg/kgo/consumer_group.go:794 +0x2de Previous read at 0x00c00022c330 by goroutine 210: runtime.mapiternext() /usr/local/go/src/runtime/map.go:862 +0x0 go.unistack.org/micro-broker-kgo/v3.(*subscriber).poll.func1() /build/vendor/go.unistack.org/micro-broker-kgo/v3/subscriber.go:108 +0x61a Goroutine 1694 (running) created at: github.com/twmb/franz-go/pkg/kgo.(*assignRevokeSession).assign() /build/vendor/github.com/twmb/franz-go/pkg/kgo/consumer_group.go:783 +0x11c github.com/twmb/franz-go/pkg/kgo.(*groupConsumer).setupAssignedAndHeartbeat() /build/vendor/github.com/twmb/franz-go/pkg/kgo/consumer_group.go:885 +0x7ca github.com/twmb/franz-go/pkg/kgo.(*groupConsumer).manage() /build/vendor/github.com/twmb/franz-go/pkg/kgo/consumer_group.go:391 +0x571 github.com/twmb/franz-go/pkg/kgo.(*groupConsumer).findNewAssignments.gowrap3() /build/vendor/github.com/twmb/franz-go/pkg/kgo/consumer_group.go:1785 +0x33 Goroutine 210 (running) created at: go.unistack.org/micro-broker-kgo/v3.(*subscriber).poll() /build/vendor/go.unistack.org/micro-broker-kgo/v3/subscriber.go:84 +0x1e4 go.unistack.org/micro-broker-kgo/v3.(*Broker).Subscribe.gowrap1() /build/vendor/go.unistack.org/micro-broker-kgo/v3/kgo.go:392 +0x4f ```
Member
https://git.unistack.org/unistack-org/micro-broker-kgo/pulls/134
vtolstov referenced this issue from a commit 2024-04-19 19:26:08 +03:00
Author
Owner

done

done
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unistack-org/micro-broker-kgo#133
No description provided.