Open hamishforbes opened 3 years ago
@hamishforbes I can not understand your log, where does the New broker list
come from?
This is a problem because if all the client is created with a static list of IPs and then all the brokers rotate out everything just fails.
there should have error messages in this case.
@hamishforbes I can not understand your log, where does the
New broker list
come from?
Sorry maybe I didn't explain very well, i've just pushed my modified version: https://github.com/doujiang24/lua-resty-kafka/compare/master...hamishforbes:debug_logging
The new broker list comes from the response to the background metadata refresh request
The background metadata refresh doesn't seem to update the list of brokers correctly.
I've vendor'd in this lib to my app and tweaked the logging a little bit to dump out the list of brokers being used for the metadata request and the list of brokers being set back
This gives me log output like:
and then ~30s later (my configured refresh interval)
As you can see the broker list is still the original static bootstrap values.
This is a problem because if all the client is created with a static list of IPs and then all the brokers rotate out everything just fails.