在golang下使用
"github.com/Shopify/sarama"
cluster "github.com/bsm/sarama-cluster"
连接kafka时出现错误:
2020/10/15 11:12:32 group-1: Rebalanced: &{Type:rebalance start Claimed:map[] Released:map[] Current:map[]}
2020/10/15 11:12:32 group-2: Rebalanced: &{Type:rebalance start Claimed:map[] Released:map[] Current:map[]}
panic: non-positive interval for NewTicker
goroutine 47 [running]:
time.NewTicker(0x0, 0x0)
D:/Go/src/time/tick.go:23 +0x155
github.com/bsm/sarama-cluster.(*Consumer).cmLoop(0xc0001e4000, 0xc00020e720)
E:/go/pkg/mod/github.com/bsm/sarama-cluster@v2.1.15+incompatible/consumer.go:452 +0x65
github.com/bsm/sarama-cluster.(*loopTomb).Go.func1(0xc000216680, 0xc0002184a0)
E:/go/pkg/mod/github.com/bsm/sarama-cluster@v2.1.15+incompatible/util.go:73 +0x82
created by github.com/bsm/sarama-cluster.(*loopTomb).Go
E:/g