Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syncProducer.SendMessage blocked infinitely at sending rsp to a nil channel #2241

Closed
shiml7 opened this issue Jun 6, 2022 · 2 comments
Closed

Comments

@shiml7
Copy link

shiml7 commented Jun 6, 2022

Versions

Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.

| Sarama | Kafka | Go |
|v1.32.0|-------|1.16|

Configuration

What configuration values are you using for Sarama and Kafka?
sync mod

Logs

the stack is like this:
Goroutine 1940490 - User: /usr/local/app/go/pkg/mod/github.com/!shopify/[email protected]/sync_producer.go:96 github.com/Shopify/sarama.(*syncProducer).SendMessage (0xb7d5c6)
0 0x000000000043ccc5 in runtime.gopark
at /usr/local/go/src/runtime/proc.go:337
1 0x000000000040854f in runtime.chanrecv
at /usr/local/go/src/runtime/chan.go:576
2 0x000000000040818b in runtime.chanrecv1
at /usr/local/go/src/runtime/chan.go:439
3 0x0000000000b7d5c6 in github.com/Shopify/sarama.(*syncProducer).SendMessage
at /usr/local/app/go/pkg/mod/github.com/!shopify/[email protected]/sync_producer.go:96
...

Goroutine 470 - User: /usr/local/app/go/pkg/mod/github.com/!shopify/[email protected]/sync_producer.go:132 github.com/Shopify/sarama.(*syncProducer).handleSuccesses (0xb7d910)
0 0x000000000043ccc5 in runtime.gopark
at /usr/local/go/src/runtime/proc.go:337
1 0x0000000000407aae in runtime.chansend
at /usr/local/go/src/runtime/chan.go:163
2 0x00000000004073d5 in runtime.chansend1
at /usr/local/go/src/runtime/chan.go:143
3 0x0000000000b7d910 in github.com/Shopify/sarama.(*syncProducer).handleSuccesses
at /usr/local/app/go/pkg/mod/github.com/!shopify/[email protected]/sync_producer.go:132
4 0x0000000000b87eb3 in github.com/Shopify/sarama.(*syncProducer).handleSuccesses-fm
at /usr/local/app/go/pkg/mod/github.com/!shopify/[email protected]/sync_producer.go:128
5 0x0000000000b7f2e9 in github.com/Shopify/sarama.withRecover
at /usr/local/app/go/pkg/mod/github.com/!shopify/[email protected]/utils.go:43
6 0x0000000000473f61 in runtime.goexit
at /usr/local/go/src/runtime/asm_amd64.s:1371

Problem Description

SendMessage blocked infinitely. The stack shows it seems blocked at goroutine 470 because it's chansending to a nil channel.
This problem occurs occasionally and the reproduce condition is not known yet。

@dnwe
Copy link
Collaborator

dnwe commented Jun 6, 2022

@shiml7 unfortunately this was a known issue with the v1.32.0 release and hence it was marked as retracted — please upgrade to the latest v1.34.0 release

@shiml7
Copy link
Author

shiml7 commented Jun 6, 2022

ok

@shiml7 shiml7 closed this as completed Jun 6, 2022
vadmeste pushed a commit to vadmeste/minio that referenced this issue Jul 29, 2022
There is a known rare issue in the current version 1.30.0 described here
IBM/sarama#2241.

Update the library to 1.35.0
vadmeste pushed a commit to vadmeste/minio that referenced this issue Jul 29, 2022
There is a known rare issue in the current version 1.30.0 described here
IBM/sarama#2241.

Update the library to 1.35.0

Also update shirou/gopsutil v3.22.5 to v3.22.6 to fix a compilation
error in openbsd
harshavardhana pushed a commit to minio/minio that referenced this issue Jul 29, 2022
There is a known rare issue in the current version 1.30.0 described here
IBM/sarama#2241.

Update the library to 1.35.0

Bonus:  update shirou/gopsutil v3.22.5 to v3.22.6 to fix a compilation
error for OpenBSD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants