-
Notifications
You must be signed in to change notification settings - Fork 4.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
fix(core) properly cache plugin db miss #1914
Conversation
patch the global tcp.connect function to use the internal dns resolver
…migration process
…rs an empty table if nothing is specified instead of the previous `nil`. So if table length is 0, drop it and revert to defaults.
using postgres it won't start, complaining no options table was provided, yet the debug line shows it does. using cassandra the tcp override debug lines don't show --> cassandra bypasses those overrrides. How??
…cli-tcp-override
Fix/dns2 cli tcp override
…eature/upstreams2
…advanced ring-balancer.
…res only targets & upstreams
…ndra and postgres
…using uncessary db access
local plugin | ||
|
||
before_each(function() | ||
helpers.dao:truncate_tables() |
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.
@thibaultcha I had to insert the above truncation of the tables, or the tests would continue to give me an error that an entry already existed for hooks2.com
below.
Did recently anything change here, as I was under the impression that the tables would automatically truncate upon starting/stopping kong in tests.
More odd; it only gave me the error hooks2.com
, but not on hooks1.com
.
any ideas?
* hotfix(db-miss) porting #1914 fix
Summary
In case multiple rows are returned for the lookup, but none matches, there would be no sentinel value for the db-miss inserted, causing excessive db access.
Note: build on top of the
feature/upstreams2
branch as that already had a lot of changes in the hooks tests. So should be merged only after upstreams, hence tagged aspr/status/incomplete
.Full changelog
Issues resolved
Fix #1841
Fix #1870