-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Fix Broker Hostname Records #46
Conversation
This pull request is now in conflict. Could you fix it @stephanECD? 🙏 |
The bootstrap broker lists can't be reliably used to create the DNS hostsnmes, since it only shows up to 3 brokers. If you have more than 3 brokers the hostname records start dancing from one apply to the next.
@stephanECD thanks for the contribution! I'll run the tests |
/test all |
/test all |
/test all |
/test all |
@stephanECD seems like it cannot retrieve the endpoints immediately after creating the cluster. A delay may be needed after cluster creation and before the data source pulls the broker information. This is most likely due to the AWS api not returning consistent results. were you tested this locally to see if this works as expected? |
@nitrocode thanks for looking into this. I don't think the AWS API is the root cause. I was able to fix this error:
by simply going back to one line in the code for the brokers. So I would guess your |
@stephanECD cool. Were you able to test out the change ? |
/test all |
Reverted the hostname count, seems that was a bad idea. |
/test all |
Thanks @stephanECD for the contribution! |
what
bootstrap_brokers_tls
output.why
Because right now the bootstrap brokers are used to build the hostnames. AWS doesn't give a complete list of brokers in the bootstrap brokers list (see references). So if you have 4 brokers but 3 reported bootstrap brokers then the hostnames for the 4 DNS records are wrong. Also the bootstrap brokers change between refreshes, so the hostnames change with every apply.
references