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

kafka-producer-performance with throughput fail #1969

Closed
KerryJava opened this issue Jun 20, 2021 · 2 comments
Closed

kafka-producer-performance with throughput fail #1969

KerryJava opened this issue Jun 20, 2021 · 2 comments

Comments

@KerryJava
Copy link
Contributor

Versions

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

Sarama Kafka Go
v1.29.0 0.10.2.0 go1.15.7 linux/amd64
Configuration

What configuration values are you using for Sarama and Kafka?

./kafka-producer-performance -brokers 172.18.8.143:9092,172.18.8.142:9092,172.18.8.141:9092
-topic test
-throughput 500
-version "0.10.2.0"
-message-load 10000
-message-size 5000
-required-acks -1

Logs

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x740d46]

goroutine 10 [running]:
github.com/Shopify/sarama.(*produceSet).wouldOverflow(0xc00024c1b0, 0xc0000c0a00, 0x7fff00000008)
/root/go/pkg/mod/github.com/!shopify/[email protected]/produce_set.go:242 +0x206
github.com/Shopify/sarama.(*brokerProducer).run(0xc00381e0e0)
/root/go/pkg/mod/github.com/!shopify/[email protected]/async_producer.go:782 +0x4c5
github.com/Shopify/sarama.withRecover(0xc0000a0a00)
/root/go/pkg/mod/github.com/!shopify/[email protected]/utils.go:43 +0x49
created by github.com/Shopify/sarama.(*asyncProducer).newBrokerProducer
/root/go/pkg/mod/github.com/!shopify/[email protected]/async_producer.go:690 +0x20c
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x740d46]

goroutine 6 [running]:
github.com/Shopify/sarama.(*produceSet).wouldOverflow(0xc0000a3260, 0xc0000c0a00, 0x7fff0000000a)
/root/go/pkg/mod/github.com/!shopify/[email protected]/produce_set.go:242 +0x206
github.com/Shopify/sarama.(*brokerProducer).run(0xc00381e000)
/root/go/pkg/mod/github.com/!shopify/[email protected]/async_producer.go:782 +0x4c5
github.com/Shopify/sarama.withRecover(0xc0000a09a0)
/root/go/pkg/mod/github.com/!shopify/[email protected]/utils.go:43 +0x49
created by github.com/Shopify/sarama.(*asyncProducer).newBrokerProducer
/root/go/pkg/mod/github.com/!shopify/[email protected]/async_producer.go:690 +0x20c
When filing an issue please provide logs from Sarama and Kafka if at all
possible. You can set sarama.Logger to a log.Logger to capture Sarama debug
output.

logs: CLICK ME

Problem Description
  1. run kafka-producer-performance in tools directory with param "-throughput 500"
  2. program crash and panic
@KerryJava
Copy link
Contributor Author

use the code I committed, it runs well

@dnwe
Copy link
Collaborator

dnwe commented Jun 21, 2021

fixed by #1971

Thanks @KerryJava

@dnwe dnwe closed this as completed Jun 21, 2021
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