-
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
Configure backward compatibility on Group.Rebalance.GroupStrategies #2351
Comments
By default sarama will not set See #2352. |
My bad. I think we can just delete this validation
to make it compatible. Because |
I does not know the internal mechanism of saram well, If delete it has no side effect, we could delete the above |
Fixed by #2352 — thanks for raising this |
In d66826a commit, new configuration options
Group.Rebalance.GroupStrategies
have been introduced.But it is not backward compatibility.
If I do the below starategy set in my older code, but use the latest sarama package, will encounter
Consumer.Group.Rebalance.GroupStrategies and Consumer.Group.Rebalance.Strategy cannot be set at the same time
error. Please see https://github.com/Shopify/sarama/blob/v1.37.0/config.go#L808That is because sarama always set a default value on
Group.Rebalance.GroupStrategies
. Please see https://github.com/Shopify/sarama/blob/v1.37.0/config.go#L542The code is very confusing, util I read d66826a commit. Does it a violated Object-oriented design pattern? The Config should not exposed, so set
Consumer.Group.Rebalance.Strategy
andConsumer.Group.Rebalance.GroupStrategies
can be atomic.Just setting
Consumer.Group.Rebalance.Strategy
Deprecated is not enough.The text was updated successfully, but these errors were encountered: