fatal error: concurrent map writes

When attempt to connect to the cluster and consume a topic data to analyze, getting this fatal error all the time.
Probably this is a subtype of another issue described in #7, which happens in other environments, than the one, attempted to be used in the other case, when getting the error from #7.
Expected Behavior

The topic data is consumed without issues, and schema IDs stats provided as the result.
Current Behavior

Getting this exception on any attempt to use the application:
$ ./schema-registry-statistics --bootstrap "<broker host>:9093" --topic "<topic name>" --group "schema-stats-client" --tls --cert /path/to/ca.cer --user "<user>" --password "<password>" --store --path "./output.json" --oldest --verbose
[sr-stats] 2023/03/03 12:29:35 Starting to consume from <topic name>
[sr-stats DEBUG] 2023/03/03 12:29:35 Initializing new client
[sr-stats DEBUG] 2023/03/03 12:29:35 ClientID is the default of 'sarama', you should consider setting it to something application-specific.
[sr-stats DEBUG] 2023/03/03 12:29:35 ClientID is the default of 'sarama', you should consider setting it to something application-specific.
[sr-stats DEBUG] 2023/03/03 12:29:35 client/metadata fetching metadata for all topics from broker <broker host>:9093
[sr-stats DEBUG] 2023/03/03 12:29:35 Completed pre-auth SASL handshake. Available mechanisms: [PLAIN]
[sr-stats DEBUG] 2023/03/03 12:29:35 SASL authentication successful with broker <broker host>:9093:4 - [0 0 0 0]
[sr-stats DEBUG] 2023/03/03 12:29:35 Connected to broker at <broker host>:9093 (unregistered)
[sr-stats DEBUG] 2023/03/03 12:29:36 client/brokers registered new broker #1 at <broker host>:9093
[sr-stats DEBUG] 2023/03/03 12:29:36 Successfully initialized new client
[sr-stats DEBUG] 2023/03/03 12:29:36 client/metadata fetching metadata for [<topic name>] from broker <broker host>:9093
[sr-stats DEBUG] 2023/03/03 12:29:36 client/coordinator requesting coordinator for schema-stats-client from <broker host>:9093
[sr-stats DEBUG] 2023/03/03 12:29:36 client/coordinator coordinator for schema-stats-client is #1 (<broker host>:9093)
[sr-stats DEBUG] 2023/03/03 12:29:36 ClientID is the default of 'sarama', you should consider setting it to something application-specific.
[sr-stats DEBUG] 2023/03/03 12:29:36 Completed pre-auth SASL handshake. Available mechanisms: [PLAIN]
[sr-stats DEBUG] 2023/03/03 12:29:36 SASL authentication successful with broker <broker host>:9093:4 - [0 0 0 0]
[sr-stats DEBUG] 2023/03/03 12:29:36 Connected to broker at <broker host>:9093 (registered as #1)
[sr-stats DEBUG] 2023/03/03 12:29:39 client/coordinator requesting coordinator for schema-stats-client from <broker host>:9093
[sr-stats DEBUG] 2023/03/03 12:29:39 client/coordinator coordinator for schema-stats-client is #1 (<broker host>:9093)
[sr-stats] 2023/03/03 12:29:39 Consumer up and running!...
[sr-stats] 2023/03/03 12:29:39 Use SIGINT to stop consuming.
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 accumulated 11 new subscriptions
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 added subscription to <topic name>/11
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 added subscription to <topic name>/0
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 added subscription to <topic name>/3
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 added subscription to <topic name>/1
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 added subscription to <topic name>/9
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 added subscription to <topic name>/8
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 added subscription to <topic name>/5
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 added subscription to <topic name>/6
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 added subscription to <topic name>/4
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 added subscription to <topic name>/7
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 added subscription to <topic name>/10
[sr-stats DEBUG] 2023/03/03 12:29:39 consumer/broker/1 accumulated 1 new subscriptions
[sr-stats] 2023/03/03 12:29:40 acked 100 messages
fatal error: [sr-stats] 2023/03/03 12:29:40 acked 100 messages
concurrent map writes
[sr-stats] 2023/03/03 12:29:40 acked 100 messages
fatal error: concurrent map writes
[sr-stats] 2023/03/03 12:29:40 acked 100 messages
fatal error: concurrent map writes
fatal error: concurrent map writes
fatal error: concurrent map writes

Further output
goroutine 57 [running]:
runtime.throw({0x7991c1?, 0x2?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:992 +0x71 fp=0xc00007cdd8 sp=0xc00007cda8 pc=0x435171
runtime.mapassign_fast32(0x738aa0?, 0xc00007f830?, 0x16)
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/map_fast32.go:102 +0x2c5 fp=0xc00007ce10 sp=0xc00007cdd8 pc=0x410645
github.com/eladleev/schema-registry-statistics/utils.AppendResult(...)
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/utils/stats.go:26
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc0001921b0}, {0x821ca8, 0xc0001851d0})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:112 +0x20b fp=0xc00007ced0 sp=0xc00007ce10 pc=0x6ffc2b
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc0001921b0, {0xc000198600, 0x2b}, 0x8)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e fp=0xc00007cf60 sp=0xc00007ced0 pc=0x6cca4e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc000198600?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76 fp=0xc00007cfb8 sp=0xc00007cf60 pc=0x6cc3f6
github.com/Shopify/sarama.newConsumerGroupSession.func5()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:794 +0x31 fp=0xc00007cfe0 sp=0xc00007cfb8 pc=0x6cc351
runtime.goexit()
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc00007cfe8 sp=0xc00007cfe0 pc=0x4646c1
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 1 [select]:
main.main()
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:71 +0x690

goroutine 9 [select]:
github.com/Shopify/sarama.(*client).backgroundMetadataUpdater(0xc00010cbe0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/client.go:920 +0x12a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.NewClient
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/client.go:205 +0x405

goroutine 33 [chan receive]:
github.com/rcrowley/go-metrics.(*meterArbiter).tick(0xa036e0)
        /home/runner/go/pkg/mod/github.com/rcrowley/go-metrics@v0.0.0-20201227073835-cf1acfcdf475/meter.go:239 +0x2a
created by github.com/rcrowley/go-metrics.NewMeter
        /home/runner/go/pkg/mod/github.com/rcrowley/go-metrics@v0.0.0-20201227073835-cf1acfcdf475/meter.go:46 +0xd3

goroutine 20 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc000198600, 0x2b}, 0x1921b0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 8 [chan receive]:
github.com/Shopify/sarama.(*Broker).responseReceiver(0xc000146a80)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/broker.go:1111 +0x77
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*Broker).Open.func1
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/broker.go:251 +0xc6a

goroutine 10 [chan receive]:
github.com/Shopify/sarama.(*consumerGroup).Consume(0xc0002260c0, {0x821568, 0xc000025940}, {0xc000228150?, 0x1, 0x1}, {0x821268, 0xc000124420})
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:219 +0x289
main.main.func1()
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:55 +0x105
created by main.main
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:52 +0x52d

goroutine 40 [select]:
github.com/Shopify/sarama.(*offsetManager).mainLoop(0xc0001fe000)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/offset_manager.go:242 +0xf2
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.newOffsetManagerFromClient
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/offset_manager.go:81 +0x2c5

goroutine 11 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc000198600, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 12 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc000198600, 0x2b}, 0x1?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 39 [chan receive]:
github.com/Shopify/sarama.(*Broker).responseReceiver(0xc000147500)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/broker.go:1111 +0x77
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*Broker).Open.func1
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/broker.go:251 +0xc6a

goroutine 41 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).heartbeatLoop(0xc0001921b0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:975 +0x41e
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:754 +0x2ca

goroutine 21 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc000198600, 0x2b}, 0x1c?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 13 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc000198600, 0x2b}, 0x497b8?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 14 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc000198600, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 22 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc000198600, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 42 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc000198600, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 23 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc000198600, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 15 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc000198600, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 43 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc000198600, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 16 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc000198600, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 49 [running]:
        goroutine running on other thread; stack unavailable
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 50 [select]:
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc0001921b0}, {0x821ca8, 0xc000185170})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:107 +0x10a
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc0001921b0, {0xc000198600, 0x2b}, 0x1)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc000198600?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 51 [select]:
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc0001921b0}, {0x821ca8, 0xc000616360})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:107 +0x10a
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc0001921b0, {0xc000198600, 0x2b}, 0x2)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc000198600?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 52 [runnable]:
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc0001921b0}, {0x821ca8, 0xc000400d20})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:107 +0x10a
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc0001921b0, {0xc000198600, 0x2b}, 0x3)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc000198600?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 53 [runnable]:
syscall.Syscall(0x1, 0x2, 0xc000066230, 0x32)
        /opt/hostedtoolcache/go/1.18.10/x64/src/syscall/asm_linux_amd64.s:20 +0x5
syscall.write(0xc00006a120?, {0xc000066230?, 0xa?, 0x12d8952a1?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/syscall/zsyscall_linux_amd64.go:924 +0x4d
syscall.Write(...)
        /opt/hostedtoolcache/go/1.18.10/x64/src/syscall/syscall_unix.go:216
internal/poll.ignoringEINTRIO(...)
        /opt/hostedtoolcache/go/1.18.10/x64/src/internal/poll/fd_unix.go:794
internal/poll.(*FD).Write(0xc00006a120?, {0xc000066230?, 0x32?, 0x70?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/internal/poll/fd_unix.go:383 +0x36e
os.(*File).write(...)
        /opt/hostedtoolcache/go/1.18.10/x64/src/os/file_posix.go:48
os.(*File).Write(0xc00000e020, {0xc000066230?, 0x32, 0xa041e0?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/os/file.go:176 +0x65
log.(*Logger).Output(0xc0000740a0, 0x13?, {0xc0034bc030, 0x13})
        /opt/hostedtoolcache/go/1.18.10/x64/src/log/log.go:195 +0x368
log.Printf({0x79826b?, 0xc00007f860?}, {0x0?, 0x5?, 0x43fdd1?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/log/log.go:351 +0x55
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc0001921b0}, {0x821ca8, 0xc000522660})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:115 +0x2d7
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc0001921b0, {0xc000198600, 0x2b}, 0x4)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc000198600?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 54 [runnable]:
sync.runtime_SemacquireMutex(0x7f8cc26e92f8?, 0x7?, 0xc0001d8d38?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc0000740a0)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:162 +0x165
sync.(*Mutex).Lock(...)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:81
log.(*Logger).Output(0xc0000740a0, 0x13?, {0xc0000180f0, 0x13})
        /opt/hostedtoolcache/go/1.18.10/x64/src/log/log.go:176 +0x9c
log.Printf({0x79826b?, 0xc00007f860?}, {0x0?, 0x5?, 0x43fdd1?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/log/log.go:351 +0x55
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc0001921b0}, {0x821ca8, 0xc000522510})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:115 +0x2d7
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc0001921b0, {0xc000198600, 0x2b}, 0x5)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc000198600?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 55 [select]:
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc0001921b0}, {0x821ca8, 0xc000522600})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:107 +0x10a
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc0001921b0, {0xc000198600, 0x2b}, 0x6)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc000198600?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 56 [running]:
        goroutine running on other thread; stack unavailable
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 58 [running]:
        goroutine running on other thread; stack unavailable
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 59 [runnable]:
sync.runtime_SemacquireMutex(0x1?, 0x0?, 0xc0001d6e00?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc0000740a0)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:162 +0x165
sync.(*Mutex).Lock(...)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:81
log.(*Logger).Output(0xc0000740a0, 0x13?, {0xc0019f8018, 0x13})
        /opt/hostedtoolcache/go/1.18.10/x64/src/log/log.go:176 +0x9c
log.Printf({0x79826b?, 0xc00007f860?}, {0x0?, 0x5?, 0x43fdd1?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/log/log.go:351 +0x55
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc0001921b0}, {0x821ca8, 0xc000400e10})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:115 +0x2d7
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc0001921b0, {0xc000198600, 0x2b}, 0xa)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc000198600?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 60 [running]:
        goroutine running on other thread; stack unavailable
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 61 [select]:
github.com/Shopify/sarama.(*consumerGroup).loopCheckPartitionNumbers(0xc0002260c0, {0xc000228150, 0x1, 0x1}, 0xc0001921b0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:637 +0x259
created by github.com/Shopify/sarama.(*consumerGroup).Consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:216 +0x26f

goroutine 65 [syscall]:
os/signal.signal_recv()
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/sigqueue.go:151 +0x2f
os/signal.loop()
        /opt/hostedtoolcache/go/1.18.10/x64/src/os/signal/signal_unix.go:23 +0x19
created by os/signal.Notify.func1.1
        /opt/hostedtoolcache/go/1.18.10/x64/src/os/signal/signal.go:151 +0x2a

goroutine 24 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010d220)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 25 [runnable]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010d220)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 81 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc000404000)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 82 [runnable]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc000404000)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 26 [chan send]:
github.com/Shopify/sarama.(*brokerConsumer).subscriptionManager(0xc00009e3c0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:916 +0x2df
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).newBrokerConsumer
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:871 +0x16d

goroutine 27 [semacquire]:
sync.runtime_Semacquire(0xc00062df00?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0xc00062df20?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/waitgroup.go:136 +0x52
github.com/Shopify/sarama.(*brokerConsumer).subscriptionConsumer(0xc00009e3c0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:960 +0x176
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).newBrokerConsumer
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:872 +0x1ea

goroutine 28 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 83 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 29 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 84 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 30 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 85 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 62 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc000404140)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 63 [select]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc000404140)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 64 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 97 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 98 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 45 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc0000b6140)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 46 [runnable]:
sync.runtime_SemacquireMutex(0x81de00?, 0x0?, 0x4?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc00035f2a8)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:162 +0x165
sync.(*Mutex).Lock(...)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:81
sync.(*RWMutex).Lock(0xc0002f3a40?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/rwmutex.go:139 +0x36
github.com/Shopify/sarama.(*cleanupRegistry).GetOrRegister(0xc00035f290, {0x798375, 0x13}, {0x725d80, 0x7c5280})
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/metrics.go:83 +0x65
github.com/Shopify/sarama.getOrRegisterHistogram({0x798375?, 0x0?}, {0x823308?, 0xc00035f290?})
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/metrics.go:21 +0x42
github.com/Shopify/sarama.(*partitionConsumer).parseResponse(0xc0000b6140, 0xc000620040)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:686 +0x65
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc0000b6140)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:573 +0xbb
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 47 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 48 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 113 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 31 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010d0e0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 66 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010d040)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 32 [runnable]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010d0e0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 67 [runnable]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010d040)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 129 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 130 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 114 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 131 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 115 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 116 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 68 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010d2c0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 69 [select]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010d2c0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 70 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 71 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 72 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 117 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010cfa0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 118 [runnable]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010cfa0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 73 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc0000b60a0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 74 [runnable]:
sync.runtime_SemacquireMutex(0x0?, 0x0?, 0x0?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc00035f2a8)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:162 +0x165
sync.(*Mutex).Lock(...)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:81
sync.(*RWMutex).Lock(0x39?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/rwmutex.go:139 +0x36
github.com/Shopify/sarama.(*cleanupRegistry).GetOrRegister(0xc00035f290, {0x798375, 0x13}, {0x725d80, 0x7c5280})
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/metrics.go:83 +0x65
github.com/Shopify/sarama.getOrRegisterHistogram({0x798375?, 0x0?}, {0x823308?, 0xc00035f290?})
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/metrics.go:21 +0x42
github.com/Shopify/sarama.(*partitionConsumer).parseResponse(0xc0000b60a0, 0xc000620040)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:686 +0x65
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc0000b60a0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:573 +0xbb
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 75 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 76 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 77 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 78 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc0004040a0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 79 [runnable]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc0004040a0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 80 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 145 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 146 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 147 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 148 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 149 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 99 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010d180)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 100 [runnable]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010d180)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0xc0001921b0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 101 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 102 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 103 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 161 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc0000b61e0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 162 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc0000b61e0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:572 +0x92
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 163 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 164 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 165 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 60 [running]:
runtime.throw({0x7991c1?, 0xc0000a4340?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:992 +0x71 fp=0xc0001d7da8 sp=0xc0001d7d78 pc=0x435171
runtime.mapassign_faststr(0xc0001d7e90?, 0x1?, {0xc00026793e, 0x2})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/map_faststr.go:212 +0x39c fp=0xc0001d7e10 sp=0xc0001d7da8 pc=0x412adc
github.com/eladleev/schema-registry-statistics/utils.CalcStat(...)
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/utils/stats.go:31
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc0001921b0}, {0x821ca8, 0xc000584360})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:110 +0x1a8 fp=0xc0001d7ed0 sp=0xc0001d7e10 pc=0x6ffbc8
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc0001921b0, {0xc000198600, 0x2b}, 0xb)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e fp=0xc0001d7f60 sp=0xc0001d7ed0 pc=0x6cca4e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc000198600?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76 fp=0xc0001d7fb8 sp=0xc0001d7f60 pc=0x6cc3f6
github.com/Shopify/sarama.newConsumerGroupSession.func5()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:794 +0x31 fp=0xc0001d7fe0 sp=0xc0001d7fb8 pc=0x6cc351
runtime.goexit()
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0001d7fe8 sp=0xc0001d7fe0 pc=0x4646c1
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 58 [running]:
runtime.throw({0x7991c1?, 0xc0000a4270?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:992 +0x71 fp=0xc00007dda8 sp=0xc00007dd78 pc=0x435171
runtime.mapassign_faststr(0xc00007de90?, 0x1?, {0xc0001960fc, 0x2})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/map_faststr.go:212 +0x39c fp=0xc00007de10 sp=0xc00007dda8 pc=0x412adc
github.com/eladleev/schema-registry-statistics/utils.CalcStat(...)
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/utils/stats.go:31
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc0001921b0}, {0x821ca8, 0xc0000a2f90})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:110 +0x1a8 fp=0xc00007ded0 sp=0xc00007de10 pc=0x6ffbc8
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc0001921b0, {0xc000198600, 0x2b}, 0x9)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e fp=0xc00007df60 sp=0xc00007ded0 pc=0x6cca4e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc000198600?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76 fp=0xc00007dfb8 sp=0xc00007df60 pc=0x6cc3f6
github.com/Shopify/sarama.newConsumerGroupSession.func5()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:794 +0x31 fp=0xc00007dfe0 sp=0xc00007dfb8 pc=0x6cc351
runtime.goexit()
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc00007dfe8 sp=0xc00007dfe0 pc=0x4646c1
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 49 [running]:
runtime.throw({0x7991c1?, 0xc00060c000?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:992 +0x71 fp=0xc0001dbda8 sp=0xc0001dbd78 pc=0x435171
runtime.mapassign_faststr(0xc0001dbe90?, 0x1?, {0xc0002eb908, 0x2})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/map_faststr.go:212 +0x39c fp=0xc0001dbe10 sp=0xc0001dbda8 pc=0x412adc
github.com/eladleev/schema-registry-statistics/utils.CalcStat(...)
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/utils/stats.go:31
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc0001921b0}, {0x821ca8, 0xc0000a2e70})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:110 +0x1a8 fp=0xc0001dbed0 sp=0xc0001dbe10 pc=0x6ffbc8
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc0001921b0, {0xc000198600, 0x2b}, 0x0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e fp=0xc0001dbf60 sp=0xc0001dbed0 pc=0x6cca4e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc000198600?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76 fp=0xc0001dbfb8 sp=0xc0001dbf60 pc=0x6cc3f6
github.com/Shopify/sarama.newConsumerGroupSession.func5()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:794 +0x31 fp=0xc0001dbfe0 sp=0xc0001dbfb8 pc=0x6cc351
runtime.goexit()
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0001dbfe8 sp=0xc0001dbfe0 pc=0x4646c1
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 56 [running]:
runtime.throw({0x7991c1?, 0xc000100000?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:992 +0x71 fp=0xc00007bda8 sp=0xc00007bd78 pc=0x435171
runtime.mapassign_faststr(0xc00007be90?, 0x1?, {0xc0000140ea, 0x2})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/map_faststr.go:212 +0x39c fp=0xc00007be10 sp=0xc00007bda8 pc=0x412adc
github.com/eladleev/schema-registry-statistics/utils.CalcStat(...)
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/utils/stats.go:31
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc0001921b0}, {0x821ca8, 0xc0005226c0})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:110 +0x1a8 fp=0xc00007bed0 sp=0xc00007be10 pc=0x6ffbc8
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc0001921b0, {0xc000198600, 0x2b}, 0x7)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e fp=0xc00007bf60 sp=0xc00007bed0 pc=0x6cca4e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc000198600?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76 fp=0xc00007bfb8 sp=0xc00007bf60 pc=0x6cc3f6
github.com/Shopify/sarama.newConsumerGroupSession.func5()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:794 +0x31 fp=0xc00007bfe0 sp=0xc00007bfb8 pc=0x6cc351
runtime.goexit()
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc00007bfe8 sp=0xc00007bfe0 pc=0x4646c1
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

Context (Environment)

SASL_PLAIN with TLS/SSL endpoint is used to connect to the Broker.
With other consumers I can read the topic data without issues.
There are 12 partitions of the topic.
There are 6 versions of schemas registered for the topic value subject in Schema Registry.

Sometimes it's the combination of the two - fatal error: concurrent map writes and panic: runtime error: slice bounds out of range.
$ ./schema-registry-statistics --bootstrap "<broker host>:9093" --topic "<topic name>" --group "schema-stats-client" --tls --cert /path/to/ca.cer --user "<user>" --password "<password>" --store --path "./output.json" --oldest --verbose
[sr-stats] 2023/03/03 12:29:59 Starting to consume from <topic name>
[sr-stats DEBUG] 2023/03/03 12:29:59 Initializing new client
[sr-stats DEBUG] 2023/03/03 12:29:59 ClientID is the default of 'sarama', you should consider setting it to something application-specific.
[sr-stats DEBUG] 2023/03/03 12:29:59 ClientID is the default of 'sarama', you should consider setting it to something application-specific.
[sr-stats DEBUG] 2023/03/03 12:29:59 client/metadata fetching metadata for all topics from broker <broker host>:9093
[sr-stats DEBUG] 2023/03/03 12:29:59 Completed pre-auth SASL handshake. Available mechanisms: [PLAIN]
[sr-stats DEBUG] 2023/03/03 12:29:59 SASL authentication successful with broker <broker host>:9093:4 - [0 0 0 0]
[sr-stats DEBUG] 2023/03/03 12:29:59 Connected to broker at <broker host>:9093 (unregistered)
[sr-stats DEBUG] 2023/03/03 12:29:59 client/brokers registered new broker #1 at <broker host>:9093
[sr-stats DEBUG] 2023/03/03 12:29:59 Successfully initialized new client
[sr-stats DEBUG] 2023/03/03 12:29:59 client/metadata fetching metadata for [<topic name>] from broker <broker host>:9093
[sr-stats DEBUG] 2023/03/03 12:29:59 client/coordinator requesting coordinator for schema-stats-client from <broker host>:9093
[sr-stats DEBUG] 2023/03/03 12:29:59 client/coordinator coordinator for schema-stats-client is #1 (<broker host>:9093)
[sr-stats DEBUG] 2023/03/03 12:29:59 ClientID is the default of 'sarama', you should consider setting it to something application-specific.
[sr-stats DEBUG] 2023/03/03 12:29:59 Completed pre-auth SASL handshake. Available mechanisms: [PLAIN]
[sr-stats DEBUG] 2023/03/03 12:30:00 SASL authentication successful with broker <broker host>:9093:4 - [0 0 0 0]
[sr-stats DEBUG] 2023/03/03 12:30:00 Connected to broker at <broker host>:9093 (registered as #1)
[sr-stats DEBUG] 2023/03/03 12:30:03 client/coordinator requesting coordinator for schema-stats-client from <broker host>:9093
[sr-stats DEBUG] 2023/03/03 12:30:03 client/coordinator coordinator for schema-stats-client is #1 (<broker host>:9093)
[sr-stats] 2023/03/03 12:30:03 Consumer up and running!...
[sr-stats] 2023/03/03 12:30:03 Use SIGINT to stop consuming.
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 accumulated 12 new subscriptions
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 added subscription to <topic name>/6
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 added subscription to <topic name>/3
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 added subscription to <topic name>/4
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 added subscription to <topic name>/8
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 added subscription to <topic name>/10
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 added subscription to <topic name>/5
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 added subscription to <topic name>/0
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 added subscription to <topic name>/7
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 added subscription to <topic name>/11
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 added subscription to <topic name>/9
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 added subscription to <topic name>/2
[sr-stats DEBUG] 2023/03/03 12:30:03 consumer/broker/1 added subscription to <topic name>/1
[sr-stats] 2023/03/03 12:30:05 acked 100 messages
[sr-stats] 2023/03/03 12:30:05 acked 100 messages
fatal error: [sr-stats] 2023/03/03 12:30:05 acked 100 messages
concurrent map writes[sr-stats] 2023/03/03 12:30:05 acked 100 messages

fatal error: concurrent map writes
panic: runtime error: slice bounds out of range [:5] with capacity 0

Further output
goroutine 45 [running]:
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc000140cf0}, {0x821ca8, 0xc0006080f0})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:109 +0x2fa
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc000140cf0, {0xc00037e240, 0x2b}, 0x7)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc00037e240?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 43 [running]:
runtime.throw({0x7991c1?, 0xc00019c270?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:992 +0x71 fp=0xc00007dda8 sp=0xc00007dd78 pc=0x435171
runtime.mapassign_faststr(0xc00007de90?, 0x1?, {0xc000196e86, 0x2})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/map_faststr.go:212 +0x39c fp=0xc00007de10 sp=0xc00007dda8 pc=0x412adc
github.com/eladleev/schema-registry-statistics/utils.CalcStat(...)
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/utils/stats.go:31
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc000140cf0}, {0x821ca8, 0xc000598390})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:110 +0x1a8 fp=0xc00007ded0 sp=0xc00007de10 pc=0x6ffbc8
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc000140cf0, {0xc00037e240, 0x2b}, 0x5)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e fp=0xc00007df60 sp=0xc00007ded0 pc=0x6cca4e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc00037e240?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76 fp=0xc00007dfb8 sp=0xc00007df60 pc=0x6cc3f6
github.com/Shopify/sarama.newConsumerGroupSession.func5()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:794 +0x31 fp=0xc00007dfe0 sp=0xc00007dfb8 pc=0x6cc351
runtime.goexit()
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc00007dfe8 sp=0xc00007dfe0 pc=0x4646c1
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 1 [select]:
main.main()
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:71 +0x690

goroutine 9 [select]:
github.com/Shopify/sarama.(*client).backgroundMetadataUpdater(0xc00010cb40)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/client.go:920 +0x12a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.NewClient
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/client.go:205 +0x405

goroutine 33 [chan receive]:
github.com/rcrowley/go-metrics.(*meterArbiter).tick(0xa036e0)
        /home/runner/go/pkg/mod/github.com/rcrowley/go-metrics@v0.0.0-20201227073835-cf1acfcdf475/meter.go:239 +0x2a
created by github.com/rcrowley/go-metrics.NewMeter
        /home/runner/go/pkg/mod/github.com/rcrowley/go-metrics@v0.0.0-20201227073835-cf1acfcdf475/meter.go:46 +0xd3

goroutine 20 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc00037e240, 0x2b}, 0x1c?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 8 [chan receive]:
github.com/Shopify/sarama.(*Broker).responseReceiver(0xc000146a80)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/broker.go:1111 +0x77
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*Broker).Open.func1
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/broker.go:251 +0xc6a

goroutine 10 [runnable]:
github.com/Shopify/sarama.(*consumerGroup).Consume(0xc0002260c0, {0x821568, 0xc000025940}, {0xc000228150?, 0x1, 0x1}, {0x821268, 0xc000124420})
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:219 +0x289
main.main.func1()
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:55 +0x105
created by main.main
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:52 +0x52d

goroutine 49 [select]:
github.com/Shopify/sarama.(*offsetManager).mainLoop(0xc000226180)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/offset_manager.go:242 +0xf2
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.newOffsetManagerFromClient
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/offset_manager.go:81 +0x2c5

goroutine 34 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc00037e240, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 35 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc00037e240, 0x2b}, 0x140cf0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 16 [chan receive]:
github.com/Shopify/sarama.(*Broker).responseReceiver(0xc000147500)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/broker.go:1111 +0x77
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*Broker).Open.func1
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/broker.go:251 +0xc6a

goroutine 50 [select]:
github.com/Shopify/sarama.(*consumerGroupSession).heartbeatLoop(0xc000140cf0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:975 +0x41e
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:754 +0x2ca

goroutine 51 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc00037e240, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 52 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc00037e240, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 53 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc00037e240, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 36 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc00037e240, 0x2b}, 0x40001?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 54 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc00037e240, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 21 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc00037e240, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 22 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc00037e240, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 55 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc00037e240, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 37 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupSession.func1({0xc00037e240, 0x2b}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:767 +0x94
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:766 +0x5d1

goroutine 38 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupClaim).waitClosed(0xc000598480)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1072 +0xb8
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc000140cf0, {0xc00037e240, 0x2b}, 0x0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:874 +0x2c5
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc00037e240?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 39 [runnable]:
sync.runtime_SemacquireMutex(0x1?, 0x0?, 0xc000417e00?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc0000740a0)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:162 +0x165
sync.(*Mutex).Lock(...)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:81
log.(*Logger).Output(0xc0000740a0, 0x13?, {0xc00039c060, 0x13})
        /opt/hostedtoolcache/go/1.18.10/x64/src/log/log.go:176 +0x9c
log.Printf({0x79826b?, 0xc00007f860?}, {0x0?, 0x5?, 0x43fdd1?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/log/log.go:351 +0x55
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc000140cf0}, {0x821ca8, 0xc0000a2210})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:115 +0x2d7
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc000140cf0, {0xc00037e240, 0x2b}, 0x1)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc00037e240?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 40 [runnable]:
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc000140cf0}, {0x821ca8, 0xc0005980f0})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:107 +0x10a
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc000140cf0, {0xc00037e240, 0x2b}, 0x2)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc00037e240?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 41 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupClaim).waitClosed(0xc000185620)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1072 +0xb8
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc000140cf0, {0xc00037e240, 0x2b}, 0x3)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:874 +0x2c5
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc00037e240?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 42 [runnable]:
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc000140cf0}, {0x821ca8, 0xc000608090})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:107 +0x10a
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc000140cf0, {0xc00037e240, 0x2b}, 0x4)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc00037e240?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 44 [runnable]:
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc000140cf0}, {0x821ca8, 0xc0005982a0})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:107 +0x10a
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc000140cf0, {0xc00037e240, 0x2b}, 0x6)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc00037e240?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 45 [running]:
        goroutine running on other thread; stack unavailable
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 46 [runnable]:
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc000140cf0}, {0x821ca8, 0xc00040e690})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:107 +0x10a
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc000140cf0, {0xc00037e240, 0x2b}, 0x8)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc00037e240?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 47 [running]:
        goroutine running on other thread; stack unavailable
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 48 [runnable]:
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc000140cf0}, {0x821ca8, 0xc0004a04b0})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:107 +0x10a
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc000140cf0, {0xc00037e240, 0x2b}, 0xa)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc00037e240?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 65 [runnable]:
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc000140cf0}, {0x821ca8, 0xc0004a0510})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:107 +0x10a
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc000140cf0, {0xc00037e240, 0x2b}, 0xb)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc00037e240?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

goroutine 66 [runnable]:
github.com/Shopify/sarama.(*consumerGroup).loopCheckPartitionNumbers(0xc0002260c0, {0xc000228150, 0x1, 0x1}, 0xc000140cf0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:637 +0x259
created by github.com/Shopify/sarama.(*consumerGroup).Consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:216 +0x26f

goroutine 56 [syscall]:
os/signal.signal_recv()
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/sigqueue.go:151 +0x2f
os/signal.loop()
        /opt/hostedtoolcache/go/1.18.10/x64/src/os/signal/signal_unix.go:23 +0x19
created by os/signal.Notify.func1.1
        /opt/hostedtoolcache/go/1.18.10/x64/src/os/signal/signal.go:151 +0x2a

goroutine 81 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc0000b6140)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 82 [runnable]:
sync.runtime_SemacquireMutex(0x0?, 0x0?, 0x0?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc00035f368)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:162 +0x165
sync.(*Mutex).Lock(...)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:81
sync.(*RWMutex).Lock(0x0?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/rwmutex.go:139 +0x36
github.com/Shopify/sarama.(*cleanupRegistry).GetOrRegister(0xc00035f350, {0x798375, 0x13}, {0x725d80, 0x7c5280})
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/metrics.go:83 +0x65
github.com/Shopify/sarama.getOrRegisterHistogram({0x798375?, 0x0?}, {0x823308?, 0xc00035f350?})
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/metrics.go:21 +0x42
github.com/Shopify/sarama.(*partitionConsumer).parseResponse(0xc0000b6140, 0xc00009e040)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:686 +0x65
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc0000b6140)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:573 +0xbb
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 83 [select]:
github.com/Shopify/sarama.(*brokerConsumer).subscriptionManager(0xc0005a8040)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:890 +0x117
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).newBrokerConsumer
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:871 +0x16d

goroutine 84 [semacquire]:
sync.runtime_Semacquire(0xc0003f1f00?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0xc0003f1f20?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/waitgroup.go:136 +0x52
github.com/Shopify/sarama.(*brokerConsumer).subscriptionConsumer(0xc0005a8040)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:960 +0x176
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).newBrokerConsumer
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:872 +0x1ea

goroutine 85 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 86 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 87 [runnable]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 68 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010cdc0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 69 [runnable]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010cdc0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 70 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 97 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010cf00)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 113 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010ce60)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 114 [select]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010ce60)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 71 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 72 [runnable]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 115 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 116 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 117 [runnable]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 57 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc0000b60a0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 58 [runnable]:
sync.runtime_SemacquireMutex(0x81de00?, 0x0?, 0x0?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc00035f368)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:162 +0x165
sync.(*Mutex).Lock(...)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:81
sync.(*RWMutex).Lock(0xc0002f1080?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/rwmutex.go:139 +0x36
github.com/Shopify/sarama.(*cleanupRegistry).GetOrRegister(0xc00035f350, {0x798375, 0x13}, {0x725d80, 0x7c5280})
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/metrics.go:83 +0x65
github.com/Shopify/sarama.getOrRegisterHistogram({0x798375?, 0x0?}, {0x823308?, 0xc00035f350?})
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/metrics.go:21 +0x42
github.com/Shopify/sarama.(*partitionConsumer).parseResponse(0xc0000b60a0, 0xc00009e040)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:686 +0x65
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc0000b60a0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:573 +0xbb
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 59 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 60 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 61 [runnable]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 98 [runnable]:
github.com/Shopify/sarama.(*Records).isControl(0xc000190d98?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/records.go:146 +0xeb
github.com/Shopify/sarama.(*partitionConsumer).parseResponse(0xc00010cf00, 0xc00009e040)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:791 +0xa48
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010cf00)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:573 +0xbb
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 99 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 100 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 101 [runnable]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 88 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010cd20)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 89 [runnable]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010cd20)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 90 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 91 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 92 [runnable]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 93 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010d180)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 94 [runnable]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010d180)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 95 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 73 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010d040)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 74 [runnable]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010d040)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 118 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 119 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 120 [runnable]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 96 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 129 [runnable]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 105 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010d0e0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 106 [runnable]:
sync.runtime_SemacquireMutex(0x0?, 0x0?, 0x0?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc00035f368)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:162 +0x165
sync.(*Mutex).Lock(...)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/mutex.go:81
sync.(*RWMutex).Lock(0x0?)
        /opt/hostedtoolcache/go/1.18.10/x64/src/sync/rwmutex.go:139 +0x36
github.com/Shopify/sarama.(*cleanupRegistry).GetOrRegister(0xc00035f350, {0x798375, 0x13}, {0x725d80, 0x7c5280})
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/metrics.go:83 +0x65
github.com/Shopify/sarama.getOrRegisterHistogram({0x798375?, 0x0?}, {0x823308?, 0xc00035f350?})
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/metrics.go:21 +0x42
github.com/Shopify/sarama.(*partitionConsumer).parseResponse(0xc00010d0e0, 0xc00009e040)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:686 +0x65
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010d0e0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:573 +0xbb
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 107 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 108 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 109 [runnable]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 23 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010cfa0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 62 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00049c000)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 24 [runnable]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010cfa0)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 63 [select]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00049c000)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 25 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 26 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 27 [runnable]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 64 [chan receive]:
github.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc00010d220)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:442 +0x3a
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:188 +0x2d8

goroutine 28 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 29 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 161 [select]:
github.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc00010d220)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:582 +0x2a5
github.com/Shopify/sarama.withRecover(0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/utils.go:43 +0x3e
created by github.com/Shopify/sarama.(*consumer).ConsumePartition
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer.go:189 +0x356

goroutine 162 [chan receive]:
github.com/Shopify/sarama.newConsumerGroupClaim.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1048 +0x98
created by github.com/Shopify/sarama.newConsumerGroupClaim
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1047 +0x18a

goroutine 163 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:853 +0x9c
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:852 +0x1e8

goroutine 164 [runnable]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 30 [runnable]:
github.com/Shopify/sarama.(*consumerGroupSession).consume.func2()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:860 +0x78
created by github.com/Shopify/sarama.(*consumerGroupSession).consume
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:859 +0x245

goroutine 146 [chan receive]:
github.com/Shopify/sarama.(*consumerGroupClaim).waitClosed.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1068 +0x4e
created by github.com/Shopify/sarama.(*consumerGroupClaim).waitClosed
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1067 +0x65

goroutine 130 [runnable]:
github.com/Shopify/sarama.(*consumerGroupClaim).waitClosed.func1()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1067
created by github.com/Shopify/sarama.(*consumerGroupClaim).waitClosed
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:1067 +0x65

goroutine 47 [running]:
runtime.throw({0x7991c1?, 0xc00019c4e0?})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:992 +0x71 fp=0xc00041bda8 sp=0xc00041bd78 pc=0x435171
runtime.mapassign_faststr(0xc00041be90?, 0x1?, {0xc000263ad4, 0x2})
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/map_faststr.go:212 +0x39c fp=0xc00041be10 sp=0xc00041bda8 pc=0x412adc
github.com/eladleev/schema-registry-statistics/utils.CalcStat(...)
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/utils/stats.go:31
main.(*Consumer).ConsumeClaim(0xc000124420, {0x823360, 0xc000140cf0}, {0x821ca8, 0xc000598090})
        /home/runner/work/schema-registry-statistics/schema-registry-statistics/main.go:110 +0x1a8 fp=0xc00041bed0 sp=0xc00041be10 pc=0x6ffbc8
github.com/Shopify/sarama.(*consumerGroupSession).consume(0xc000140cf0, {0xc00037e240, 0x2b}, 0x9)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:868 +0x26e fp=0xc00041bf60 sp=0xc00041bed0 pc=0x6cca4e
github.com/Shopify/sarama.newConsumerGroupSession.func2({0xc00037e240?, 0x0?}, 0x0?)
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:793 +0x76 fp=0xc00041bfb8 sp=0xc00041bf60 pc=0x6cc3f6
github.com/Shopify/sarama.newConsumerGroupSession.func5()
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:794 +0x31 fp=0xc00041bfe0 sp=0xc00041bfb8 pc=0x6cc351
runtime.goexit()
        /opt/hostedtoolcache/go/1.18.10/x64/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc00041bfe8 sp=0xc00041bfe0 pc=0x4646c1
created by github.com/Shopify/sarama.newConsumerGroupSession
        /home/runner/go/pkg/mod/github.com/!shopify/sarama@v1.37.2/consumer_group.go:785 +0x4b4

Hi @ZZa ,
I was unable to simulate the issue, but added some locks that are supposed to solve the issue.
If the issue still occurs with the revised version, please create a new bug 🙏
Thanks for using the tool!