-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
non-positive interval for NewTicker #1638
Comments
seems like a bug, got similar issue. I've worked around it by doing this: |
I have the same issue. Seems like a regression in 1.26.1 |
Me too. I use "github.com/bsm/sarama-cluster" with kafka consumer group feature |
Use this github.com/bsm/sarama-cluster v2.1.15+incompatible |
@soouCc have you tried using the following with a recent Sarama release?
|
config.Consumer.Offsets.AutoCommit.Interval = 1 * time.Second Hello, I try it, but it doesn't work. clusterConfig.Consumer.Offsets.CommitInterval = time.Second This works |
clusterConfig.Consumer.Offsets.CommitInterval is deprecated You need to use next one for fixing problem
|
It works if you turn on flag |
Fix for the regression caused from latest sarama versions Ref: IBM/sarama#1638 Change-Id: I0c3d5e45736707d5a095382371696ee34f365c00
Thank you for taking the time to raise this issue. However, it has not had any activity on it in the past 90 days and will be closed in 30 days if no updates occur. |
I have run into the following error. |
I met this issue.
The 176 line of the consumer_group.go is
After troubleshooting I found that a package is constructing sarama client using the following code:
And the documentation of
But it seems it doesn't handle the |
In which file we need to set config.Consumer.Offsets.CommitInterval=time.Second |
Thank you for taking the time to raise this issue. However, it has not had any activity on it in the past 90 days and will be closed in 30 days if no updates occur. |
Fixed by #2329 |
Versions
Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.
| | | |
panic: non-positive interval for NewTicker
ticker := time.NewTicker(c.client.config.Consumer.Offsets.CommitInterval)
// Deprecated: CommitInterval exists for historical compatibility
// and should not be used. Please use Consumer.Offsets.AutoCommit
CommitInterval time.Duration
How can I set this CommitInterval?
The text was updated successfully, but these errors were encountered: