Comments (3)
I ran into this overnight last night. Mine was in a slightly different context, during a rebalance operation while system was idle:
[Sarama] 2015/07/13 02:02:13 client/metadata fetching metadata for all topics from broker 192.168.1.8:9095 [Sarama] 2015/07/13 02:12:13 client/metadata fetching metadata for all topics from broker 192.168.1.8:9095 [Sarama] 2015/07/13 02:22:13 client/metadata fetching metadata for all topics from broker 192.168.1.8:9095 [Sarama] 2015/07/13 04:05:10 [backend/30dccfbe8daf] Triggering rebalance due to consumer list change [Sarama] 2015/07/13 04:05:10 [backend/30dccfbe8daf] VeraTopic/3 :: Stopping partition consumer at offset -1 [Sarama] 2015/07/13 04:05:10 [backend/30dccfbe8daf] VeraTopic/0 :: Stopping partition consumer at offset -1 [Sarama] 2015/07/13 04:05:10 [backend/30dccfbe8daf] VeraTopic/1 :: Stopping partition consumer at offset -1 [Sarama] 2015/07/13 04:05:10 [backend/30dccfbe8daf] VeraTopic/2 :: Stopping partition consumer at offset 25199 [Sarama] 2015/07/13 04:05:10 client/metadata fetching metadata for all topics from broker 192.168.1.8:9095 [Sarama] 2015/07/13 04:05:10 consumer/broker/0 closed dead subscription to VeraTopic/3 [Sarama] 2015/07/13 04:05:10 consumer/broker/2 closed dead subscription to VeraTopic/1 [Sarama] 2015/07/13 04:05:10 consumer/broker/1 closed dead subscription to VeraTopic/0 [Sarama] 2015/07/13 04:05:10 consumer/broker/3 closed dead subscription to VeraTopic/2 [Sarama] 2015/07/13 04:05:11 [backend/30dccfbe8daf] VeraTopic :: Stopped topic consumer [Sarama] 2015/07/13 04:05:12 [backend/30dccfbe8daf] Currently registered consumers: 0 [Sarama] 2015/07/13 04:05:12 [backend/30dccfbe8daf] VeraTopic :: Started topic consumer panic: runtime error: integer divide by zero [signal 0x8 code=0x7 addr=0xfa3af pc=0xfa3af] goroutine 120 [running]: runtime.panic(0x407d80, 0x6a8df9) /usr/local/go/src/pkg/runtime/panic.c:279 +0xf5 github.com/wvanbergen/kafka/consumergroup.dividePartitionsBetweenConsumers(0x6ad198, 0x0, 0x0, 0xc20865a100, 0x4, 0x4, 0x0) /Users/jness/v/gocode/src/github.com/wvanbergen/kafka/consumergroup/utils.go:39 +0x15f github.com/wvanbergen/kafka/consumergroup.(*ConsumerGroup).topicConsumer(0xc2080523c0, 0x475c10, 0x9, 0xc208011b00, 0xc208012400, 0xc208406420) /Users/jness/v/gocode/src/github.com/wvanbergen/kafka/consumergroup/consumer_group.go:310 +0x5e1 created by github.com/wvanbergen/kafka/consumergroup.(*ConsumerGroup).topicListConsumer /Users/jness/v/gocode/src/github.com/wvanbergen/kafka/consumergroup/consumer_group.go:260 +0x340
from kafka.
Yeah, I think just sleeping for a bit and retrying might be the best approach when this happens.
from kafka.
@wvanbergen I've created a PR with the fix we applied @ #68
from kafka.
Related Issues (20)
- zk: node does not exist HOT 1
- Is There Any Benchmark for the Consumer? HOT 1
- Lots of logs such as "abandoned subscription to xxx because consuming was taking too long" HOT 1
- Bug? Consuming stops or hangs at certain time.
- ConsumerGroup.Messages() HOT 3
- How to exit the program in kafka/examples/consumergroup/main.go gracefully? HOT 1
- Clarify Kafka version support HOT 3
- consumption message delay
- consumergroup not work in docker HOT 1
- Consumer group not consuming from partitions -- Kafka v11
- Some problems when I try to run my consumer in two node. HOT 3
- Trouble reliably reusing consumer group names across topics HOT 1
- Upgrading to kafka based offset storage HOT 1
- Kafka consumer not restarting after broker failure
- Leader change during re-balance may cause partition not being consumed HOT 4
- Can't receive messages when i test the demo which the project gives. HOT 4
- ConsumerGroup.FlushOffsets() HOT 3
- Version releases? HOT 2
- which tag or version support kafka 0.8 ?
- Is there any way to get to the ConsumerGroup. Instance. ID?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kafka.