-
Notifications
You must be signed in to change notification settings - Fork 35
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(cassandra) kong refueses to start when a node in contact_points
is down
#147
Conversation
… is down Instead of `error(...)`, use `warn(...)` to let kong start. Kong will rediscover the down nodes once they are up.
…ing and equal to local_dc Otherwise, consider peer as remote peer. t/14-lb_req_dc_rr.t: remove duplicate Test 9. Update Test 4 to match the code update.
71ca1f0
to
71b9929
Compare
@thibaultcha, really appreciate your review. I learned a lot from that. I just update the code according to your suggestions. Would you mind verifying it if available? |
{host = '127.0.0.2', data_center = 'dc1'}, | ||
{host = '127.0.0.3'} | ||
{host = '127.0.0.3', data_center = 'dc1'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The patch would be more concise and less disruptive if we keep this test the way it is, only change the expected results.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this part because the bug is triggered when the first host has no data_center
field.
Co-authored-by: Thibault Charbonnier <[email protected]>
1. add newline after `end`. 2. wrap line upon 80 column. 3. remove `error_code: 200` from `.t` test file. 4. remove uncessary piece from Makefile.
### Summary > Released on: 2022/05/20 #### Fixed - Improve DC-aware LB policies robustness. [#147](thibaultcha/lua-cassandra#147) - Ensure request-aware + DC-aware LB policy prioritizes local peers over remote ones.
### Summary > Released on: 2022/05/20 #### Fixed - Improve DC-aware LB policies robustness. [#147](thibaultcha/lua-cassandra#147) - Ensure request-aware + DC-aware LB policy prioritizes local peers over remote ones.
fix(cassandra) kong refueses to start when a node in
contact_points
is downInstead of
error(...)
, usewarn(...)
to let kong start. Kong will rediscover the down nodes once they are up.The partner
kong-ee
PR: https://github.com/Kong/kong-ee/pull/3192